Commit 10bd589c authored by youjie's avatar youjie

no message

parent c2a5c88e
...@@ -37,6 +37,8 @@ onMounted(async () => { ...@@ -37,6 +37,8 @@ onMounted(async () => {
try { try {
// 初始化系统配置(在最开始执行) // 初始化系统配置(在最开始执行)
await systemConfigStore.initialize(location.hostname) await systemConfigStore.initialize(location.hostname)
//await systemConfigStore.getGroupInfoAsync()
// 初始化 Arco Design 国际化 // 初始化 Arco Design 国际化
await configureArcoLocale(locale.value) await configureArcoLocale(locale.value)
......
...@@ -73,8 +73,8 @@ service.interceptors.response.use( ...@@ -73,8 +73,8 @@ service.interceptors.response.use(
sessionStorage.removeItem('tempToken'); sessionStorage.removeItem('tempToken');
sessionStorage.removeItem('otaUserInfo'); sessionStorage.removeItem('otaUserInfo');
useUserStore().signOutAsync(); useUserStore().signOutAsync();
location.href= '/login';
} }
location.href= '/login';
} }
// 如果有响应数据,尝试提取错误信息 // 如果有响应数据,尝试提取错误信息
......
...@@ -210,6 +210,11 @@ export default { ...@@ -210,6 +210,11 @@ export default {
invalidFormat: 'Invalid email format', invalidFormat: 'Invalid email format',
checkFailed: 'Email validation failed, please try again later', checkFailed: 'Email validation failed, please try again later',
}, },
notPermission: {
title: 'Access Denied',
description: 'You do not have permission to access this page. Please contact your administrator to request access.',
backHome: 'Back to Home',
},
personal: { personal: {
completeProfile: 'Complete Profile', completeProfile: 'Complete Profile',
orderCenter: 'Order Center', orderCenter: 'Order Center',
......
...@@ -210,6 +210,11 @@ export default { ...@@ -210,6 +210,11 @@ export default {
invalidFormat: 'Định dạng email không chính xác', invalidFormat: 'Định dạng email không chính xác',
checkFailed: 'Xác thực email thất bại, vui lòng thử lại sau', checkFailed: 'Xác thực email thất bại, vui lòng thử lại sau',
}, },
notPermission: {
title: 'Truy cập bị từ chối',
description: 'Bạn không có quyền truy cập trang này. Vui lòng liên hệ quản trị viên để được cấp quyền.',
backHome: 'Quay lại trang chủ',
},
personal: { personal: {
completeProfile: 'Hoàn thiện thông tin', completeProfile: 'Hoàn thiện thông tin',
orderCenter: 'Trung tâm đơn hàng', orderCenter: 'Trung tâm đơn hàng',
......
...@@ -210,6 +210,11 @@ export default { ...@@ -210,6 +210,11 @@ export default {
invalidFormat: '邮箱格式不正确', invalidFormat: '邮箱格式不正确',
checkFailed: '邮箱验证失败,请稍后重试', checkFailed: '邮箱验证失败,请稍后重试',
}, },
notPermission: {
title: '访问被拒绝',
description: '你没有权限访问这个页面,请联系管理员获取权限。',
backHome: '返回首页',
},
personal: { personal: {
completeProfile: '完善资料', completeProfile: '完善资料',
orderCenter: '订单中心', orderCenter: '订单中心',
......
...@@ -210,6 +210,11 @@ export default { ...@@ -210,6 +210,11 @@ export default {
invalidFormat: '郵箱格式不正確', invalidFormat: '郵箱格式不正確',
checkFailed: '郵箱驗證失敗,請稍後重試', checkFailed: '郵箱驗證失敗,請稍後重試',
}, },
notPermission: {
title: '訪問被拒絕',
description: '你沒有權限訪問這個頁面,請聯繫管理員獲取權限。',
backHome: '返回首頁',
},
personal: { personal: {
completeProfile: '完善資料', completeProfile: '完善資料',
orderCenter: '訂單中心', orderCenter: '訂單中心',
......
...@@ -160,11 +160,11 @@ export const useSystemConfigStore = defineStore('systemConfig', { ...@@ -160,11 +160,11 @@ export const useSystemConfigStore = defineStore('systemConfig', {
/** /**
* 获取分组信息 * 获取分组信息
*/ */
async getGroupInfoAsync(groupId:number) { async getGroupInfoAsync() {
// const groupInfo = await ErpUserService.GetGroupInfoAsync(groupId) const groupInfo = await ErpUserService.GetGroupInfoAsync(this.groupId)
// if(groupInfo.data.resultCode === ApiResult.SUCCESS) { if(groupInfo.data.resultCode === ApiResult.SUCCESS) {
// this.erpAdminUserId = groupInfo.data.data.pageData[0].EmployeeId || 0 this.erpAdminUserId = groupInfo.data.data.pageData[0].EmployeeId || 0
// } }
}, },
/** /**
...@@ -196,7 +196,7 @@ export const useSystemConfigStore = defineStore('systemConfig', { ...@@ -196,7 +196,7 @@ export const useSystemConfigStore = defineStore('systemConfig', {
this.groupId = data.erpGroupId || 2 this.groupId = data.erpGroupId || 2
// 如果有租户ID,加载代理商配置 // 如果有租户ID,加载代理商配置
if (this.tenantId) { if (this.tenantId) {
await this.getGroupInfoAsync(this.groupId) // await this.getGroupInfoAsync(this.groupId)
try { try {
const partnerConfig = await PartnerCenterConfigService.getConfigByTenantIdAsync(this.tenantId) const partnerConfig = await PartnerCenterConfigService.getConfigByTenantIdAsync(this.tenantId)
this.partnerCenterConfig = partnerConfig || { this.partnerCenterConfig = partnerConfig || {
......
<template>
<div class="fixed-center text-center">
<p>
<img
src="~assets/sad.svg"
style="width:30vw;max-width:150px;"
>
</p>
<p class="text-faded">
Sorry, nothing here...<strong>(404)</strong>
</p>
<q-btn
color="secondary"
style="width:200px;"
to="/"
label="Go back"
/>
</div>
</template>
<script >
</script>
<template> <template>
<div class="h-screen flex justify-center pb-[12px] h-[797px]"> <!-- h-screen -->
<div class="flex justify-center pb-[12px] h-[797px]">
<div class="h-full flex justify-between w-[1200px]"> <div class="h-full flex justify-between w-[1200px]">
<!-- 左侧导航栏 --> <!-- 左侧导航栏 -->
<LeftView class="pt-[25px]" <LeftView class="pt-[25px]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment