新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -1,12 +1,8 @@
import { loadEnv } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import { resolve } from "path";
import { VUE_APP_API_URL } from "./config";
const resolvePath = (path) => resolve(__dirname, path);
const rootWorkPath = process.cwd(); // root路径
// https://vitejs.dev/config/
export default ({mode}) => {
let env = loadEnv(mode, rootWorkPath);
return {
plugins: [uni()],
@ -14,13 +10,13 @@ export default ({mode}) => {
https: false,
port: 10086,
proxy: {
["/appApi"]: {
target: env.VITE_BASE_URL,
["/yshop-api"]: {
target: VUE_APP_API_URL,
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/appApi/, ''),
rewrite: (path) => path.replace(/^\/yshop-api/, ''),
},
},
}
},
css: {
/* CSS 预处理器 */
@ -47,13 +43,13 @@ export default ({mode}) => {
}
},
// 去除控制台打印
minify: 'terser',
terserOptions: {
compress: {
drop_console: false,
drop_debugger: false
}
}
// minify: 'terser',
// terserOptions: {
// compress: {
// drop_console: false,
// drop_debugger: false
// }
// }
}
}
}