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> </template>
<script> <script>
import draggable from 'vuedraggable'
export default { export default {
name: 'scTable', name: 'scTable',
components: { components: {},
draggable
},
props: { props: {
apiObj: { type: Object, default: () => {} }, apiObj: { type: Object, default: () => {} },
data: { type: Object, default: () => {} }, data: { type: Object, default: () => {} },

View File

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

View File

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

View File

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

View File

@ -1,6 +1,40 @@
module.exports = { module.exports = {
//build编译后存放静态文件的目录
//assetsDir: "static",
// build编译后不生成资源MAP文件
productionSourceMap: false,
devServer: { devServer: {
open: false, //运行后自动打开游览器 open: false, //运行后自动打开游览器
port: 2800 //挂载端口 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
}
}
}
}
}
} }