diff --git a/scripts/release.mjs b/scripts/release.mjs index 05cce4f..43bc2a6 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -4,7 +4,7 @@ import path from 'path' const { existsSync, remove, copy } = fsExtra const cwd = process.cwd() //打包发布路径,谨慎改动 -const releaseRelativePath = '../server/public/parten' +const releaseRelativePath = '../server/public/broker' const distPath = path.resolve(cwd, 'dist') const releasePath = path.resolve(cwd, releaseRelativePath) diff --git a/src/config/index.ts b/src/config/index.ts index cedb580..a3e2984 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -3,10 +3,10 @@ const config = { title: '后台管理系统', //网站默认标题 version: '1.9.4', //版本号 // 开发环境使用相对路径(通过代理),生产环境使用完整URL - baseUrl: import.meta.env.DEV - ? '/' - : `${import.meta.env.VITE_APP_BASE_URL || 'https://76458.com'}/`, //请求接口域名 - urlPrefix: 'adminapi', //请求默认前缀 + baseUrl: import.meta.env.DEV + ? '/' + : `${import.meta.env.VITE_APP_BASE_URL || 'https://test1.stnav.com'}/`, //请求接口域名 + urlPrefix: 'brokerapi', //请求默认前缀 timeout: 10 * 1000 //请求超时时长 } diff --git a/src/views/permission/admin/edit.vue b/src/views/permission/admin/edit.vue index 58b7238..fd5f567 100644 --- a/src/views/permission/admin/edit.vue +++ b/src/views/permission/admin/edit.vue @@ -1,22 +1,11 @@
- +
@@ -262,6 +255,7 @@ const getData = () => { .then((res: any) => { workbenchData.version = res.version workbenchData.today = res.today + workbenchData.url = res.url workbenchData.menu = res.menu workbenchData.visitor = res.visitor workbenchData.support = res.support diff --git a/vite.config.ts b/vite.config.ts index 58c46a1..850679c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,15 +37,15 @@ function getElementPlusStylePaths() { } export default defineConfig({ - base: '/parten/', + base: '/broker/', server: { host: '0.0.0.0', - port: 5175, // 修改端口号,如有需要可调整 + port: 5177, // 修改端口号,如有需要可调整 hmr: true, open: true, proxy: { - '/partenapi': { - target: 'https://76458.com', + '/brokerapi': { + target: 'https://test1.stnav.com', changeOrigin: true, secure: true, rewrite: (path) => path