diff --git a/web/build/constant.js b/web/build/constant.js
index 17a1bf0..cf58a73 100644
--- a/web/build/constant.js
+++ b/web/build/constant.js
@@ -17,7 +17,7 @@ export const PROXY_CONFIG = {
* @转发路径 http://localhost:9999/api/v1/user
*/
'/api/v1': {
- target: 'http://localhost:9999',
+ target: 'http://127.0.0.1:9999',
changeOrigin: true,
},
}
diff --git a/web/i18n/messages/cn.json b/web/i18n/messages/cn.json
index fba511a..d166c4f 100644
--- a/web/i18n/messages/cn.json
+++ b/web/i18n/messages/cn.json
@@ -6,6 +6,19 @@
"message_input_username_password": "请输入用户名和密码",
"message_verifying": "正在验证...",
"message_login_success": "登录成功"
+ },
+ "workbench": {
+ "label_workbench": "工作台",
+ "text_hello": "hello, {username}",
+ "text_welcome": "今天又是元气满满的一天!",
+ "label_number_of_items": "项目数",
+ "label_upcoming": "待办",
+ "label_information": "消息",
+ "label_project": "项目",
+ "label_more": "更多"
+ },
+ "errors": {
+ "text_back_to_home": "返回首页"
}
}
}
\ No newline at end of file
diff --git a/web/i18n/messages/en.json b/web/i18n/messages/en.json
index 65e9dcf..7f7ebc7 100644
--- a/web/i18n/messages/en.json
+++ b/web/i18n/messages/en.json
@@ -6,6 +6,19 @@
"message_input_username_password": "Please enter username and password",
"message_verifying": "Verifying...",
"message_login_success": "Login successful"
+ },
+ "workbench": {
+ "label_workbench": "Workbench",
+ "text_hello": "hello, {username}",
+ "text_welcome": "Today is another day full of energy!",
+ "label_number_of_items": "Number of items",
+ "label_upcoming": "Upcoming",
+ "label_information": "Information",
+ "label_project": "Project",
+ "label_more": "More"
+ },
+ "errors": {
+ "text_back_to_home": "Back to home"
}
}
}
\ No newline at end of file
diff --git a/web/src/views/error-page/401.vue b/web/src/views/error-page/401.vue
index affcaf1..43e60f0 100644
--- a/web/src/views/error-page/401.vue
+++ b/web/src/views/error-page/401.vue
@@ -5,7 +5,7 @@
hello, {{ userStore.name }}
-今天又是元气满满的一天!
+{{ $t('views.workbench.text_hello', {username: userStore.name}) }}
+{{ $t('views.workbench.text_welcome') }}
一个基于 Vue3.0、FastAPI、Naive UI 的轻量级后台管理模板
+{{dummyText}}