From e869765f53afdd6176b0e28a29f52e12726d84aa Mon Sep 17 00:00:00 2001 From: ZQN <364596817@qq.com> Date: 星期三, 04 九月 2024 13:41:42 +0800 Subject: [PATCH] 配置 --- .env.development | 2 +- vite.config.ts | 6 +++--- src/views/infomanger/enforcement/index.vue | 5 +++-- .env.production | 4 ++-- src/settings.ts | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.env.development b/.env.development index 8ce352a..9d057af 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 椤甸潰鏍囬 -VITE_APP_TITLE = 鎯犱紒鎵ф硶 +VITE_APP_TITLE = 鍏ヤ紒鎵爜 # 寮�鍙戠幆澧冮厤缃� VITE_APP_ENV = 'development' diff --git a/.env.production b/.env.production index ed6151a..6763065 100644 --- a/.env.production +++ b/.env.production @@ -5,10 +5,10 @@ VITE_APP_ENV = 'production' #鍩虹鍩熷悕 -VITE_APP_BASE = 'http://ss.mantanghui.com:8089' +VITE_APP_BASE = 'https://jmy.jinmingyuan.com' # 鍏ヤ紒鎵爜/鐢熶骇鐜 -VITE_APP_BASE_API = '/prod-api' +VITE_APP_BASE_API = '/sqys-prod-api' # 鏄惁鍦ㄦ墦鍖呮椂寮�鍚帇缂╋紝鏀寔 gzip 鍜� brotli VITE_BUILD_COMPRESS = gzip diff --git a/src/settings.ts b/src/settings.ts index 5ef2893..341c7a4 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -55,5 +55,5 @@ BaseSubMenuHover: "#F8F9FF", //榧犳爣婊戣繃鑳屾櫙棰滆壊 BaseMenuBoxShodow: "#F8F9FF", //鑿滃崟杈规闃村奖棰滆壊 }, - font: "榛戜綋", //鑷畾涔夊瓧浣� + font: "寰蒋闆呴粦", //鑷畾涔夊瓧浣� }; diff --git a/src/views/infomanger/enforcement/index.vue b/src/views/infomanger/enforcement/index.vue index 5ec3769..89fd3ee 100644 --- a/src/views/infomanger/enforcement/index.vue +++ b/src/views/infomanger/enforcement/index.vue @@ -124,7 +124,8 @@ 1: '宸叉彁浜�', 2: '寰呮墽琛�', 3: '寰呬笂鎶�', - 4: '宸茬粨鏉�', + 4: '宸蹭笂鎶�', + 5: '浼佷笟宸茬‘璁�', }, regionStatus: { 0: '姝e父', @@ -198,4 +199,4 @@ } } } -</style> \ No newline at end of file +</style> diff --git a/vite.config.ts b/vite.config.ts index 9ac24e5..8b472ee 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,7 @@ // 閮ㄧ讲鐢熶骇鐜鍜屽紑鍙戠幆澧冧笅鐨刄RL銆� // 榛樿鎯呭喌涓嬶紝vite 浼氬亣璁句綘鐨勫簲鐢ㄦ槸琚儴缃插湪涓�涓煙鍚嶇殑鏍硅矾寰勪笂 // 渚嬪 https://www.ruoyi.vip/銆傚鏋滃簲鐢ㄨ閮ㄧ讲鍦ㄤ竴涓瓙璺緞涓婏紝浣犲氨闇�瑕佺敤杩欎釜閫夐」鎸囧畾杩欎釜瀛愯矾寰勩�備緥濡傦紝濡傛灉浣犵殑搴旂敤琚儴缃插湪 https://www.ruoyi.vip/admin/锛屽垯璁剧疆 baseUrl 涓� /admin/銆� - base: VITE_APP_ENV === "production" ? "/" : "/", + base: VITE_APP_ENV === "production" ? "/sqys-web/" : "/", plugins: [...createVitePlugins(env, command === "build")], resolve: { // https://cn.vitejs.dev/config/#resolve-alias @@ -32,10 +32,10 @@ changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, ""), }, - "/prod-api": { + "/sqys-prod-api": { target: VITE_APP_BASE, changeOrigin: true, - rewrite: (p) => p.replace(/^\/prod-api/, ""), + rewrite: (p) => p.replace(/^\/sqys-prod-api/, ""), }, }, port: 81, -- Gitblit v1.9.1