9/30
1. 设备管理界面完成 2. 用户管理界面完成 3. 会话列表完成
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import {defineConfig, loadEnv} from 'vite';
|
||||
import createPlugins from './vite/plugins/index.js';
|
||||
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
|
||||
|
||||
export default defineConfig(({ mode, command }) => {
|
||||
export default defineConfig(({mode, command}) => {
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
console.log(env);
|
||||
return {
|
||||
// 部署生产环境和开发环境下的URL。
|
||||
// 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上
|
||||
@@ -30,7 +31,7 @@ export default defineConfig(({ mode, command }) => {
|
||||
open: true,
|
||||
proxy: {
|
||||
[env.VITE_APP_BASE_API]: {
|
||||
target: 'http://localhost:5660',
|
||||
target: env.VITE_LOCALHOUSET === 'false' ? 'http://localhost:5660' : env.VITE_BASE_API,
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: path => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
||||
|
||||
Reference in New Issue
Block a user