From 23f8f2717620e9c4b8184275e785df32501c53b5 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期二, 06 八月 2024 19:24:00 +0800
Subject: [PATCH] fix: 修改首页bug
---
src/views/login/locale/zh-CN.ts | 4 ++--
src/components/navbar/index.vue | 2 +-
src/locale/en-US.ts | 2 +-
src/views/login/index.vue | 2 +-
index.html | 2 +-
src/locale/zh-CN.ts | 2 +-
src/hooks/user.ts | 2 +-
src/components/message-box/locale/zh-CN.ts | 2 +-
src/components/footer/index.vue | 2 +-
src/views/dashboard/workplace/locale/zh-CN.ts | 2 +-
src/views/login/components/login-form.vue | 17 ++++++-----------
11 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/index.html b/index.html
index f764c80..210f47d 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Arco Design Pro</title>
+ <title>澶фā鍨嬪钩鍙�</title>
</head>
<body>
<div id="app"></div>
diff --git a/src/components/footer/index.vue b/src/components/footer/index.vue
index 9a250cc..fc5302d 100644
--- a/src/components/footer/index.vue
+++ b/src/components/footer/index.vue
@@ -1,5 +1,5 @@
<template>
- <a-layout-footer class="footer">Arco Pro</a-layout-footer>
+ <a-layout-footer class="footer">澶фā鍨嬪钩鍙�</a-layout-footer>
</template>
<script lang="ts" setup></script>
diff --git a/src/components/message-box/locale/zh-CN.ts b/src/components/message-box/locale/zh-CN.ts
index cf3e630..9ffcb6b 100644
--- a/src/components/message-box/locale/zh-CN.ts
+++ b/src/components/message-box/locale/zh-CN.ts
@@ -9,5 +9,5 @@
'messageBox.switchRoles': '鍒囨崲瑙掕壊',
'messageBox.userCenter': '鐢ㄦ埛涓績',
'messageBox.userSettings': '鐢ㄦ埛璁剧疆',
- 'messageBox.logout': '鐧诲嚭鐧诲綍',
+ 'messageBox.logout': '閫�鍑虹櫥褰�',
};
diff --git a/src/components/navbar/index.vue b/src/components/navbar/index.vue
index e37b697..cafdd52 100644
--- a/src/components/navbar/index.vue
+++ b/src/components/navbar/index.vue
@@ -10,7 +10,7 @@
:style="{ margin: 0, fontSize: '18px' }"
:heading="5"
>
- Arco Pro
+ 澶фā鍨嬪钩鍙�
</a-typography-title>
<icon-menu-fold
v-if="!topMenu && appStore.device === 'mobile'"
diff --git a/src/hooks/user.ts b/src/hooks/user.ts
index 107358c..7776fae 100644
--- a/src/hooks/user.ts
+++ b/src/hooks/user.ts
@@ -9,7 +9,7 @@
const logout = async (logoutTo?: string) => {
await userStore.logout();
const currentRoute = router.currentRoute.value;
- Message.success('鐧诲嚭鎴愬姛');
+ Message.success('閫�鍑烘垚鍔�');
router.push({
name: logoutTo && typeof logoutTo === 'string' ? logoutTo : 'login',
query: {
diff --git a/src/locale/en-US.ts b/src/locale/en-US.ts
index a367da7..b0a6b10 100644
--- a/src/locale/en-US.ts
+++ b/src/locale/en-US.ts
@@ -46,7 +46,7 @@
'menu.profile': 'Profile',
'menu.visualization': 'Data Visualization',
'menu.user': 'User Center',
- 'menu.arcoWebsite': 'Arco Design',
+ 'menu.arcoWebsite': '澶фā鍨嬪钩鍙�',
'menu.faq': 'FAQ',
'navbar.docs': 'Docs',
'navbar.action.locale': 'Switch to English',
diff --git a/src/locale/zh-CN.ts b/src/locale/zh-CN.ts
index ad05b75..352835a 100644
--- a/src/locale/zh-CN.ts
+++ b/src/locale/zh-CN.ts
@@ -50,7 +50,7 @@
'menu.profile': '璇︽儏椤�',
'menu.visualization': '鏁版嵁鍙鍖�',
'menu.user': '涓汉涓績',
- 'menu.arcoWebsite': 'Arco Design',
+ 'menu.arcoWebsite': '澶фā鍨嬪钩鍙�',
'menu.faq': '甯歌闂',
'navbar.docs': '鏂囨。涓績',
'navbar.action.locale': '鍒囨崲涓轰腑鏂�',
diff --git a/src/views/dashboard/workplace/locale/zh-CN.ts b/src/views/dashboard/workplace/locale/zh-CN.ts
index 4eebcc8..cf6c8db 100644
--- a/src/views/dashboard/workplace/locale/zh-CN.ts
+++ b/src/views/dashboard/workplace/locale/zh-CN.ts
@@ -1,6 +1,6 @@
export default {
'menu.dashboard.workplace': '宸ヤ綔鍙�',
- 'workplace.welcome': '娆㈣繋鍥炴潵锛�',
+ 'workplace.welcome': '鐧诲綍鎴愬姛锛�',
'workplace.balance': '浣欓锛堝厓锛�',
'workplace.order.pending': '寰呮敮浠�',
'workplace.order.pendingRenewal': '寰呯画璐硅鍗�',
diff --git a/src/views/login/components/login-form.vue b/src/views/login/components/login-form.vue
index 8d4c702..a1259f6 100644
--- a/src/views/login/components/login-form.vue
+++ b/src/views/login/components/login-form.vue
@@ -1,7 +1,7 @@
<template>
<div class="login-form-wrapper">
<div class="login-form-title">{{ $t('login.form.title') }}</div>
-<!-- <div class="login-form-sub-title">{{ $t('login.form.title') }}</div>-->
+ <!-- <div class="login-form-sub-title">{{ $t('login.form.title') }}</div>-->
<div class="login-form-error-msg">{{ errorMessage }}</div>
<a-form
ref="loginForm"
@@ -16,10 +16,7 @@
:validate-trigger="['change', 'blur']"
hide-label
>
- <a-input
- v-model="userInfo.email"
- placeholder="璇疯緭鍏ラ偖绠�"
- >
+ <a-input v-model="userInfo.email" placeholder="璇疯緭鍏ラ偖绠�">
<template #prefix>
<icon-user />
</template>
@@ -55,9 +52,9 @@
<a-button type="primary" html-type="submit" long :loading="loading">
{{ $t('login.form.login') }}
</a-button>
- <a-button type="text" long class="login-form-register-btn">
+ <!-- <a-button type="text" long class="login-form-register-btn">
{{ $t('login.form.register') }}
- </a-button>
+ </a-button> -->
</a-space>
</a-form>
</div>
@@ -103,7 +100,7 @@
setLoading(true);
try {
const rsaPassWord = rsaPsw(values.password) as string;
- console.log(values,'鐧诲綍淇℃伅');
+ console.log(values, '鐧诲綍淇℃伅');
await userStore.login({
email: values.email,
password: rsaPassWord,
@@ -115,15 +112,13 @@
...othersQuery,
},
});
- Message.success(t('娆㈣繋鍥炴潵'));
+ Message.success(t('鐧诲綍鎴愬姛'));
const { rememberPassword } = loginConfig.value;
const { email, password } = values;
// 瀹為檯鐢熶骇鐜闇�瑕佽繘琛屽姞瀵嗗瓨鍌ㄣ��
// The actual production environment requires encrypted storage.
loginConfig.value.email = rememberPassword ? email : '';
loginConfig.value.password = rememberPassword ? password : '';
-
-
} catch (err) {
errorMessage.value = (err as Error).message;
} finally {
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 7ad5b01..edc55fb 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -5,7 +5,7 @@
alt="logo"
src="//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"
/>
- <div class="logo-text">Arco Design Pro</div>
+ <div class="logo-text">澶фā鍨嬪钩鍙�</div>
</div>
<LoginBanner />
<div class="content">
diff --git a/src/views/login/locale/zh-CN.ts b/src/views/login/locale/zh-CN.ts
index 6b20af9..6644521 100644
--- a/src/views/login/locale/zh-CN.ts
+++ b/src/views/login/locale/zh-CN.ts
@@ -1,5 +1,5 @@
export default {
- 'login.form.title': 'RagFlow',
+ 'login.form.title': '澶фā鍨嬪钩鍙�',
'login.form.userName.errMsg': '鐢ㄦ埛鍚嶄笉鑳戒负绌�',
'login.form.password.errMsg': '瀵嗙爜涓嶈兘涓虹┖',
'login.form.login.errMsg': '鐧诲綍鍑洪敊锛岃交鍒锋柊閲嶈瘯',
@@ -10,7 +10,7 @@
'login.form.forgetPassword': '蹇樿瀵嗙爜',
'login.form.login': '鐧诲綍',
'login.form.register': '娉ㄥ唽璐﹀彿',
- 'login.banner.slogan1': '寮�绠卞嵆鐢ㄧ殑楂樿川閲忔ā鏉�',
+ 'login.banner.slogan1': '澶фā鍨嬪钩鍙�',
'login.banner.subSlogan1': '涓板瘜鐨勭殑椤甸潰妯℃澘锛岃鐩栧ぇ澶氭暟鍏稿瀷涓氬姟鍦烘櫙',
'login.banner.slogan2': '鍐呯疆浜嗗父瑙侀棶棰樼殑瑙e喅鏂规',
'login.banner.subSlogan2': '鍥介檯鍖栵紝璺敱閰嶇疆锛岀姸鎬佺鐞嗗簲鏈夊敖鏈�',
--
Gitblit v1.8.0