mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 16:06:51 +08:00
ui update
This commit is contained in:
@@ -27,7 +27,6 @@ func (u *userApi) LoginHandler(ctx *gin.Context, req model.LoginHandlerReq) any
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return gin.H{
|
return gin.H{
|
||||||
"code": 0,
|
|
||||||
"token": token,
|
"token": token,
|
||||||
"username": req.Account,
|
"username": req.Account,
|
||||||
"role": repository.UserRepository.GetUserByName(req.Account).Role,
|
"role": repository.UserRepository.GetUserByName(req.Account).Role,
|
||||||
|
@@ -1,4 +1,9 @@
|
|||||||
export default {
|
export default {
|
||||||
|
login: {
|
||||||
|
account: "Account",
|
||||||
|
password: "Password",
|
||||||
|
button: "Login",
|
||||||
|
},
|
||||||
common: {
|
common: {
|
||||||
add: "Add",
|
add: "Add",
|
||||||
cancel: "Cancel",
|
cancel: "Cancel",
|
||||||
@@ -11,17 +16,6 @@ export default {
|
|||||||
tos: "Terms of Service",
|
tos: "Terms of Service",
|
||||||
policy: "Privacy Policy",
|
policy: "Privacy Policy",
|
||||||
},
|
},
|
||||||
login: {
|
|
||||||
title: "Sign In",
|
|
||||||
email: "Email",
|
|
||||||
password: "Password",
|
|
||||||
button: "Sign In",
|
|
||||||
orsign: "Or sign in with",
|
|
||||||
forgot: "Forgot password?",
|
|
||||||
noaccount: "Don't have an account?",
|
|
||||||
create: "Create one here",
|
|
||||||
error: "The email / password combination is invalid",
|
|
||||||
},
|
|
||||||
register: {
|
register: {
|
||||||
title: "Create Account",
|
title: "Create Account",
|
||||||
username: "Username",
|
username: "Username",
|
||||||
@@ -34,7 +28,7 @@ export default {
|
|||||||
signin: "Sign In",
|
signin: "Sign In",
|
||||||
},
|
},
|
||||||
menu: {
|
menu: {
|
||||||
process: 'ProcessManager',
|
process: "ProcessManager",
|
||||||
search: 'Search (press "ctrl + /" to focus)',
|
search: 'Search (press "ctrl + /" to focus)',
|
||||||
dashboard: "Dashboard",
|
dashboard: "Dashboard",
|
||||||
logout: "Logout",
|
logout: "Logout",
|
||||||
|
@@ -1,4 +1,9 @@
|
|||||||
export default {
|
export default {
|
||||||
|
login: {
|
||||||
|
account: "账号",
|
||||||
|
password: "密码",
|
||||||
|
button: "登入",
|
||||||
|
},
|
||||||
common: {
|
common: {
|
||||||
add: "新增",
|
add: "新增",
|
||||||
cancel: "取消",
|
cancel: "取消",
|
||||||
@@ -11,17 +16,6 @@ export default {
|
|||||||
tos: "服务条款",
|
tos: "服务条款",
|
||||||
policy: "隐私政策",
|
policy: "隐私政策",
|
||||||
},
|
},
|
||||||
login: {
|
|
||||||
title: "登录",
|
|
||||||
email: "电子邮件",
|
|
||||||
password: "密码",
|
|
||||||
button: "登录",
|
|
||||||
orsign: "或使用",
|
|
||||||
forgot: "忘记密码?",
|
|
||||||
noaccount: "还没有帐号?",
|
|
||||||
create: "在此处创建一个",
|
|
||||||
error: "电子邮件/密码组合无效",
|
|
||||||
},
|
|
||||||
register: {
|
register: {
|
||||||
title: "创建帐号",
|
title: "创建帐号",
|
||||||
username: "全名",
|
username: "全名",
|
||||||
@@ -34,7 +28,7 @@ export default {
|
|||||||
signin: "登录",
|
signin: "登录",
|
||||||
},
|
},
|
||||||
menu: {
|
menu: {
|
||||||
process: '进程管理',
|
process: "进程管理",
|
||||||
search: "搜索(按“ Ctrl + /”进行聚焦)",
|
search: "搜索(按“ Ctrl + /”进行聚焦)",
|
||||||
dashboard: "仪表板",
|
dashboard: "仪表板",
|
||||||
logout: "登出",
|
logout: "登出",
|
||||||
@@ -246,4 +240,5 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}; ``
|
};
|
||||||
|
``;
|
||||||
|
@@ -6,7 +6,7 @@ const isLoading = ref(false);
|
|||||||
const isSignInDisabled = ref(false);
|
const isSignInDisabled = ref(false);
|
||||||
|
|
||||||
const refLoginForm = ref();
|
const refLoginForm = ref();
|
||||||
const username = ref("");
|
const account = ref("");
|
||||||
const password = ref("");
|
const password = ref("");
|
||||||
const isFormValid = ref(true);
|
const isFormValid = ref(true);
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ const handleLogin = async () => {
|
|||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
isSignInDisabled.value = true;
|
isSignInDisabled.value = true;
|
||||||
login({
|
login({
|
||||||
username: username.value,
|
account: account.value,
|
||||||
password: password.value,
|
password: password.value,
|
||||||
}).then((e) => {
|
}).then((e) => {
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
@@ -62,7 +62,7 @@ const resetErrors = () => {
|
|||||||
>
|
>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
ref="refAccount"
|
ref="refAccount"
|
||||||
v-model="username"
|
v-model="account"
|
||||||
required
|
required
|
||||||
:error="error"
|
:error="error"
|
||||||
:label="$t('login.account')"
|
:label="$t('login.account')"
|
||||||
|
@@ -39,7 +39,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: "http://xcon.top:8797",
|
target: "http://127.0.0.1:8797",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/sdApi/, ""),
|
rewrite: (path) => path.replace(/^\/sdApi/, ""),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user