fix: 删除原有菜单'系统参数'、'角色管理',初步整合xpack插件模块

This commit is contained in:
fit2cloud-chenyw
2021-05-30 20:24:54 +08:00
parent d6d6dcda18
commit ae733b0776
32 changed files with 635 additions and 72 deletions

View File

@@ -7,7 +7,9 @@
</template>
<script>
import Axios from 'axios'
// import Axios from 'axios'
import { get } from '@/api/system/dynamic'
export default {
name: 'AsyncComponent',
@@ -36,13 +38,15 @@ export default {
}
let res
if (!window.SyncComponentCache[this.url]) {
window.SyncComponentCache[this.url] = Axios.get(this.url)
window.SyncComponentCache[this.url] = get(this.url)
// window.SyncComponentCache[this.url] = Axios.get(this.url)
res = await window.SyncComponentCache[this.url]
} else {
res = await window.SyncComponentCache[this.url]
}
const Fn = Function
this.mode = new Fn(`return ${res.data}`)()
this.mode = new Fn(`return ${res.data || res}`)()
}
}
},