修改商品管理接口,添加部分表单字段
This commit is contained in:
1 parent
4fd45490d3
commit
cdf99bcf94
4 files changed
+39
-32
No files matched your search
+7
-7
@@ -9,8 +9,8 @@ import viteCompression from 'vite-plugin-compression';
|
||||
// @ts-ignore
|
||||
import { svgBuilder } from '/@/components/IconSelector/index';
|
||||
|
||||
import dns from 'node:dns'
|
||||
dns.setDefaultResultOrder('verbatim')
|
||||
import dns from 'node:dns';
|
||||
dns.setDefaultResultOrder('verbatim');
|
||||
|
||||
const pathResolve = (dir: string) => {
|
||||
return resolve(__dirname, '.', dir);
|
||||
@@ -24,7 +24,7 @@ const alias: Record<string, string> = {
|
||||
const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
const env = loadEnv(mode.mode, process.cwd());
|
||||
// 判断是否开发环境
|
||||
const isDev = env.ENV === 'development'
|
||||
const isDev = env.ENV === 'development';
|
||||
return {
|
||||
plugins: [
|
||||
vue(), // Vue 插件
|
||||
@@ -77,18 +77,18 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist', // 打包输出目录
|
||||
outDir: 'dist', // 打包输出目录//
|
||||
chunkSizeWarningLimit: 1500, // 代码分包阈值
|
||||
// 开发使用 esbuild 更快,生产环境打包使用 terser 可以删除更多注释
|
||||
minify: isDev ? 'esbuild' : 'terser',
|
||||
minify: isDev ? 'esbuild' : 'terser',
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true, // 删除 console
|
||||
drop_debugger: true, // 删除 debugger
|
||||
},
|
||||
format: {
|
||||
comments: false // 删除所有注释
|
||||
}
|
||||
comments: false, // 删除所有注释
|
||||
},
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
|
||||
Reference in new issue
Block a user