update code
parent
ac2a4f6f17
commit
9f7acbdaec
|
@ -91,6 +91,7 @@
|
|||
"commitizen": "^4.3.0",
|
||||
"cz-git": "^1.9.1",
|
||||
"eslint": "^8.57.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
<span class="sp-text">{{ info.data.model_name }}</span>
|
||||
</td>
|
||||
<td style="width: 50%;">
|
||||
<span class="sp-title">模型版本:</span>
|
||||
<span class="sp-text">{{ info.data.connection_version }}</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -105,7 +105,7 @@ const initData = () => {
|
|||
it.show = true;
|
||||
it.text = it.operator_name;
|
||||
it.id = it.operator_id
|
||||
if (!it.parameters) {
|
||||
if (!it.parameters && false) {
|
||||
it.parameters = {
|
||||
inputs: [{
|
||||
input_id: 1,
|
||||
|
|
|
@ -10,7 +10,7 @@ import IconsResolver from "unplugin-icons/resolver";
|
|||
|
||||
import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
|
||||
import mockDevServerPlugin from "vite-plugin-mock-dev-server";
|
||||
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
import UnoCSS from "unocss/vite";
|
||||
import { resolve } from "path";
|
||||
import {
|
||||
|
@ -213,10 +213,19 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||
drop_debugger: true, // 生产环境去除 debugger
|
||||
},
|
||||
format: {
|
||||
comments: false, // 删除注释
|
||||
comments: false, // 删除注释
|
||||
},
|
||||
},
|
||||
},
|
||||
rollupOptions: {
|
||||
rollupOptions: {
|
||||
minify: 'terser', // 使用terser插件进行代码混淆
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true, // 混淆时去除console语句
|
||||
drop_debugger: true, // 去除debugger语句
|
||||
},
|
||||
|
||||
},
|
||||
plugins: [terser()],
|
||||
output: {
|
||||
// manualChunks: {
|
||||
// "vue-i18n": ["vue-i18n"],
|
||||
|
|
Loading…
Reference in New Issue