From 174c0cd84323b394f2009b864b09dc2d7f1e8de4 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 10 四月 2024 22:12:45 +0800
Subject: [PATCH] update 页面
---
.env.development | 7 +++----
vue.config.js | 13 +++----------
src/api/model/system.js | 2 +-
src/config/index.js | 7 +++----
.env.production | 9 ++++-----
5 files changed, 14 insertions(+), 24 deletions(-)
diff --git a/.env.development b/.env.development
index 1573b1e..cc27f24 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
###
# @Date: 2024-03-23 09:49:06
- # @LastEditors: gaoshp
- # @LastEditTime: 2024-03-23 18:12:00
- # @FilePath: /cps-web/.env.development
+ # @LastEditors: Sneed
+ # @LastEditTime: 2024-04-10 22:11:44
+ # @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/.env.development
###
# 鏈湴鐜
NODE_ENV = development
@@ -12,7 +12,6 @@
# 鎺ュ彛鍦板潃
VUE_APP_API_BASEURL = http://116.63.155.153:83
-VUE_APP_API_MYBASEURL = https://mock.apifox.com/m1/4213246-0-default/api
# 鏈湴绔彛
VUE_APP_PORT = 2800
diff --git a/.env.production b/.env.production
index c2eff2a..a04cbc8 100644
--- a/.env.production
+++ b/.env.production
@@ -1,8 +1,8 @@
###
# @Date: 2024-03-23 09:49:06
- # @LastEditors: gaoshp
- # @LastEditTime: 2024-03-24 14:11:48
- # @FilePath: /cps-web/.env.production
+ # @LastEditors: Sneed
+ # @LastEditTime: 2024-04-10 22:10:52
+ # @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/.env.production
###
# 鐢熶骇鐜
NODE_ENV = production
@@ -11,5 +11,4 @@
VUE_APP_TITLE = CPS10.0
# 鎺ュ彛鍦板潃
-VUE_APP_API_BASEURL = http://116.63.155.153:83
-VUE_APP_API_MYBASEURL = http://116.63.155.153:83
\ No newline at end of file
+VUE_APP_API_BASEURL = /api
\ No newline at end of file
diff --git a/src/api/model/system.js b/src/api/model/system.js
index a795fc9..1629ebb 100644
--- a/src/api/model/system.js
+++ b/src/api/model/system.js
@@ -4,7 +4,7 @@
export default {
menu: {
myMenus: {
- url: `${config.API_URL_MY}/system/menu/my/1.6.1`,
+ url: `${config.API_URL}/system/menu/my/1.6.1`,
name: "鑾峰彇鎴戠殑鑿滃崟",
get: async function(){
return await http.get(this.url);
diff --git a/src/config/index.js b/src/config/index.js
index 463c3d9..6bea09e 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -1,9 +1,9 @@
/*
* @Author: lzhe lzhe@example.com
* @Date: 2024-03-26 10:28:33
- * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-04-07 12:16:15
- * @FilePath: /smart-web/src/config/index.js
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-10 22:12:06
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/config/index.js
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const DEFAULT_CONFIG = {
@@ -21,7 +21,6 @@
//鎺ュ彛鍦板潃
API_URL: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'true' ? "/api" : process.env.VUE_APP_API_BASEURL,
- API_URL_MY: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'true' ? "/myapi" : process.env.VUE_APP_API_MYBASEURL,
//璇锋眰瓒呮椂
TIMEOUT: 10000,
diff --git a/vue.config.js b/vue.config.js
index 8fdc9eb..cb2ce67 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,8 +1,8 @@
/*
* @Date: 2024-03-23 09:49:06
- * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-03-28 11:34:07
- * @FilePath: /cps-web/vue.config.js
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-04-10 22:11:52
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/vue.config.js
*/
const { defineConfig } = require('@vue/cli-service')
@@ -29,13 +29,6 @@
// '^/api': '/'
}
},
- '/myapi': {
- target: process.env.VUE_APP_API_MYBASEURL,
- ws: true,
- pathRewrite: {
- '^/myapi': '/'
- }
- }
}
},
--
Gitblit v1.9.3