在仓库制作打包脚本
This commit is contained in:
@@ -57,7 +57,7 @@ export default {
|
||||
loadDvs() {
|
||||
//新App的自动化格式
|
||||
waiting.init({innerHTML: '应用加载中..'})
|
||||
let apps = require.context('../../apps', true, /\.(\/.+)\/App[A-Z][^\/]+D[Vv]\.vue$/, "lazy")
|
||||
let apps = require.context('../apps', true, /\.(\/.+)\/App[A-Z][^\/]+D[Vv]\.vue$/, "lazy")
|
||||
return Promise.all(apps.keys().map(path => apps(path).then(file => {
|
||||
if (file.default) {
|
||||
let {name} = file.default
|
||||
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
useCopilot: () => !!configExtra?.copilot
|
||||
},
|
||||
created() {
|
||||
import("../../apps/actions").then(extra => {
|
||||
import("../apps/actions").then(extra => {
|
||||
const actions = extra?.default || {}
|
||||
this.$store.hotUpdate({actions})
|
||||
Object.keys(actions)?.map(action => this.$store.dispatch(action))
|
||||
|
||||
Reference in New Issue
Block a user