diff --git a/.env.development b/.env.development index 94d18c7..c2a791b 100644 --- a/.env.development +++ b/.env.development @@ -7,8 +7,8 @@ VITE_APP_PORT = 4096 VITE_APP_BASE_API = '/dev-api' # API 服务器的 URL -VITE_APP_API_URL = http://localhost:8000 -# VITE_APP_API_URL = https://api.youlai.tech +# VITE_APP_API_URL = http://localhost:8000 +VITE_APP_API_URL = https://api.youlai.tech # WebSocket 服务器的 URL,不配置默认关闭 WebSocket #VITE_APP_WS_ENDPOINT= ws://localhost:4096/ws \ No newline at end of file diff --git a/src/api/auth.ts b/src/api/auth.ts index 1024d55..cf2fa64 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -158,7 +158,7 @@ const AuthAPI = { logout(): Promise { return request({ url: `${AUTH_BASE_URL}/logout`, - method: "POST", + method: "DELETE", }); }, diff --git a/src/pages.json b/src/pages.json index ccfbe8a..2b010f7 100644 --- a/src/pages.json +++ b/src/pages.json @@ -14,7 +14,7 @@ "type": "page", "name": "login", "style": { - "navigationBarTitleText": "登录" + "navigationStyle": "custom", } }, { @@ -54,6 +54,14 @@ "requireAuth": true } }, + { + "path": "pages/mine/official/index", + "type": "page", + "name": "official", + "style": { + "navigationBarTitleText": "有来技术" + } + }, { "path": "pages/mine/profile/complete-profile", "type": "page" diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index ac7f0d1..b165874 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,29 +1,19 @@