This commit is contained in:
sc 2021-05-06 16:13:50 +08:00
parent 2660d74025
commit f510fb00e4
5 changed files with 39 additions and 9 deletions

View File

@ -23,13 +23,9 @@
</template>
<script>
import draggable from 'vuedraggable'
export default {
name: 'scTable',
components: {
draggable
},
components: {},
props: {
apiObj: { type: Object, default: () => {} },
data: { type: Object, default: () => {} },

View File

@ -1,12 +1,12 @@
module.exports = {
//标题
title: "VUE",
title: "SCUI",
//版本号
version: "1.0",
//接口地址
apiUrl: "",
//是否开启多标签
tags: false,
tags: true,
//布局
layout: "default",
//主题

View File

@ -21,5 +21,5 @@ app.config.globalProperties.$HAS = permission;
app.use(store);
app.use(router);
app.use(ElementPlus, { size: 'small', zIndex: 3000 ,locale: locale});
app.use(ElementPlus, {size: 'small', zIndex: 3000 ,locale: locale});
app.mount('#app');

View File

@ -51,7 +51,7 @@ const routes = [{
},
{
path: "/cmd",
component: () => import(/* webpackChunkName: "login" */ '@/views/other/cmd'),
component: () => import(/* webpackChunkName: "cmd" */ '@/views/other/cmd'),
meta: {
title: "CMD"
}

View File

@ -1,6 +1,40 @@
module.exports = {
//build编译后存放静态文件的目录
//assetsDir: "static",
// build编译后不生成资源MAP文件
productionSourceMap: false,
devServer: {
open: false, //运行后自动打开游览器
port: 2800 //挂载端口
},
chainWebpack: config => {
// 移除 prefetch 插件
config.plugins.delete('prefetch');
},
configureWebpack: config => {
//性能提示
config.performance = {
hints: false
}
config.optimization = {
splitChunks: {
chunks: "async",
automaticNameDelimiter: '~',
name: true,
cacheGroups: {
//第三方库抽离
vendor: {
name: "modules",
test: /[\\/]node_modules[\\/]/,
priority: -10
}
}
}
}
}
}