mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
feat: 添加 iframe 测试功能,支持通过 URL 加载外部内容
This commit is contained in:
parent
29918882bd
commit
66252072c7
@ -15,6 +15,24 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
// iframe 测试
|
||||
if (name === 'iframe-test') {
|
||||
const {url} = this.$route.query;
|
||||
if (!url) {
|
||||
$A.modalError("URL不能为空");
|
||||
return
|
||||
}
|
||||
await this.$refs.app.onOpen({
|
||||
id: 'iframe-test',
|
||||
name: 'iframe-test',
|
||||
url: url,
|
||||
url_type: 'iframe',
|
||||
transparent: true,
|
||||
keep_alive: false,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
const app = (await $A.IDBArray("cacheMicroApps")).reverse().find(item => item.name === name);
|
||||
if (!app) {
|
||||
$A.modalError("应用不存在");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user