fix主题显示bug

This commit is contained in:
不做码农 2021-10-10 20:39:35 +08:00
parent b6412e9e6e
commit 07f49a3d0c
5 changed files with 35 additions and 64 deletions

View File

@ -419,39 +419,6 @@ aside {
color: #FFFFFF; color: #FFFFFF;
} }
/* text color */
.text-navy {
color: #1ab394;
}
.text-primary {
color: inherit;
}
.text-success {
color: #1c84c6;
}
.text-info {
color: #23c6c8;
}
.text-warning {
color: #f8ac59;
}
.text-danger {
color: #ed5565;
}
.text-muted {
color: #888888;
}
/* image */
.img-circle {
border-radius: 50%;
}
.img-lg { .img-lg {
width: 120px; width: 120px;

View File

@ -8,7 +8,7 @@
<tags-view v-if="needTagsView" /> <tags-view v-if="needTagsView" />
</div> </div>
<app-main /> <app-main />
<right-panel v-if="showSettings"> <right-panel>
<settings /> <settings />
</right-panel> </right-panel>
</div> </div>

View File

@ -4,7 +4,7 @@ import Cookies from 'js-cookie'
import Element from 'element-ui' import Element from 'element-ui'
import 'normalize.css/normalize.css' // a modern alternative to CSS resets import 'normalize.css/normalize.css' // a modern alternative to CSS resets
import '@/assets/styles/element-variables.scss' import './assets/styles/element-variables.scss'
import '@/assets/styles/index.scss' // global css import '@/assets/styles/index.scss' // global css
import App from './App' import App from './App'

View File

@ -97,8 +97,8 @@ import {
import { downloadFile } from "@/utils/zipdownload.js"; import { downloadFile } from "@/utils/zipdownload.js";
import importTable from "./importTable"; import importTable from "./importTable";
import { Loading } from "element-ui"; import { Loading } from "element-ui";
import hljs from 'highlight.js' import hljs from "highlight.js";
import 'highlight.js/styles/idea.css' // import "highlight.js/styles/idea.css"; //
export default { export default {
name: "CodeGenerator", name: "CodeGenerator",
@ -159,8 +159,11 @@ export default {
* 编辑表格 * 编辑表格
*/ */
handleEditTable(row) { handleEditTable(row) {
console.log(row); this.$router.push({
this.$router.push("/tool/gen/editTable?tableId=" + row.tableId); path: "/gen/editTable",
params: { tableId: row.tableId },
});
// this.$router.push({ path: "/job/log", params: param });
}, },
// //
handlePreview(row) { handlePreview(row) {

View File

@ -47,7 +47,7 @@ module.exports = {
configureWebpack: { configureWebpack: {
name: name, name: name,
resolve: { resolve: {
//设置路径别名,@代表根目录, @代表 src/文件夹 //设置路径别名,@代表根目录, @代表 src/文件夹
alias: { alias: {
'@': resolve('src') '@': resolve('src')
} }
@ -98,33 +98,34 @@ module.exports = {
inline: /runtime\..*\.js$/ inline: /runtime\..*\.js$/
}]) }])
.end() .end()
config.optimization.splitChunks({ config
chunks: 'all', .optimization.splitChunks({
cacheGroups: { chunks: 'all',
libs: { cacheGroups: {
name: 'chunk-libs', libs: {
test: /[\\/]node_modules[\\/]/, name: 'chunk-libs',
priority: 10, test: /[\\/]node_modules[\\/]/,
chunks: 'initial' // only package third parties that are initially dependent priority: 10,
}, chunks: 'initial' // only package third parties that are initially dependent
elementUI: { },
name: 'chunk-elementUI', // split elementUI into a single package elementUI: {
priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app name: 'chunk-elementUI', // split elementUI into a single package
test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
}, test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
commons: { },
name: 'chunk-commons', commons: {
test: resolve('src/components'), // can customize your rules name: 'chunk-commons',
minChunks: 3, // minimum common number test: resolve('src/components'), // can customize your rules
priority: 5, minChunks: 3, // minimum common number
reuseExistingChunk: true priority: 5,
reuseExistingChunk: true
}
} }
} })
})
config.optimization.runtimeChunk('single'), config.optimization.runtimeChunk('single'),
{ {
from: path.resolve(__dirname, './public/robots.txt'),//防爬虫文件 from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './',//到根目录下 to: './' //到根目录下
} }
} }
) )