feat:更新侧边导航,修改密码等

This commit is contained in:
leilei
2025-10-20 17:41:54 +08:00
parent db72ea9f33
commit e0001ba430
59 changed files with 10434 additions and 775 deletions

View File

@@ -1,46 +1,44 @@
import { fileURLToPath, URL } from 'node:url'
import path from "path";
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { codeInspectorPlugin } from 'code-inspector-plugin'
import { defineConfig ,loadEnv} from 'vite'
import vue from '@vitejs/plugin-vue'
import createVitePlugins from './vite/plugins/index.js'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
codeInspectorPlugin({
bundler: 'vite', // 使用 vite
showSwitch: true,
}),
],
server: {
host: '0.0.0.0', // 关键配置,允许局域网访问
port: 3000,
open: true,
hmr: { overlay: false },
proxy: {
'/dev-api': {
target: 'https://xsynergy.gxtech.ltd', // 从环境变量读取
changeOrigin: true,
ws: true,
rewrite: (path) =>
path.replace(new RegExp(`^/dev-api`), '')
},
'/livekit-api': {
target: 'https://meeting.cnsdt.com/api/v1', // 从环境变量读取
changeOrigin: true,
ws: true,
rewrite: (path) =>
path.replace(new RegExp(`^/livekit-api`), '')
export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd());
const { VITE_BASE_PATH } = env;
return {
plugins: createVitePlugins(env, command === "build"),
server: {
host: '0.0.0.0', // 关键配置,允许局域网访问
port: 3000,
open: true,
hmr: { overlay: false },
proxy: {
'/dev-api': {
target: 'https://xsynergy.gxtech.ltd', // 从环境变量读取
changeOrigin: true,
ws: true,
rewrite: (path) =>
path.replace(new RegExp(`^/dev-api`), '')
},
'/livekit-api': {
target: 'https://meeting.cnsdt.com/api/v1', // 从环境变量读取
changeOrigin: true,
ws: true,
rewrite: (path) =>
path.replace(new RegExp(`^/livekit-api`), '')
}
}
}
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
css: {
postcss: './postcss.config.js' // 纯外部配置
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
css: {
postcss: './postcss.config.js' // 纯外部配置
},
}
})