This commit is contained in:
yanran200730
2022-03-02 10:06:37 +08:00
parent 15555a9304
commit 7a667e6f2b
3 changed files with 2 additions and 25 deletions

1
.gitignore vendored
View File

@@ -25,4 +25,3 @@ yarn-error.log*
/oms/dist/ /oms/dist/
/project/*/index.js /project/*/index.js
/project/*/dist /project/*/dist
/examples/entries.js

View File

@@ -1,22 +0,0 @@
//引入当前工程所有的应用
const install = function(Vue) {
if (install.installed) return Promise.resolve();
else {
let contexts = require.context('../project/xiushan', true, /(\/.+)\/App[^\/]+\.vue$/);
if (contexts) {
contexts.keys().map((e) => {
if (contexts(e).default) {
Vue.component(contexts(e).default.name, contexts(e).default);
}
});
}
}
};
// 判断是否是直接引入文件
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export default {
// 导出的对象必须具有 install才能被 Vue.use() 方法安装
install
};

View File

@@ -23,7 +23,7 @@
type="date" type="date"
size="small" size="small"
unlink-panels unlink-panels
placeholder="选择开始日期" placeholder="选择发布开始日期"
@change="search.current = 1, getList()" /> @change="search.current = 1, getList()" />
<el-date-picker <el-date-picker
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -31,7 +31,7 @@
type="date" type="date"
size="small" size="small"
unlink-panels unlink-panels
placeholder="选择结束日期" placeholder="选择发布结束日期"
@change="search.current = 1, getList()" /> @change="search.current = 1, getList()" />
</template> </template>
<template #right> <template #right>