mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
28 lines
611 B
Vue
28 lines
611 B
Vue
<template>
|
|
<MicroApps ref="app" window-type="popout"/>
|
|
</template>
|
|
|
|
<script>
|
|
import MicroApps from "../../components/MicroApps";
|
|
|
|
export default {
|
|
components: { MicroApps },
|
|
|
|
async mounted() {
|
|
const {name} = this.$route.params;
|
|
if (!name) {
|
|
$A.modalError("应用不存在");
|
|
return
|
|
}
|
|
|
|
const app = (await $A.IDBArray("cacheMicroApps")).reverse().find(item => item.name === name);
|
|
if (!app) {
|
|
$A.modalError("应用不存在");
|
|
return
|
|
}
|
|
|
|
await this.$refs.app.observeMicroApp(app)
|
|
}
|
|
}
|
|
</script>
|