Commit 8f63e605 authored by xinzhedeai's avatar xinzhedeai

fix: 请求异常自动跳转登录处理、password测试数据去除

parent 9142674e
......@@ -62,7 +62,7 @@ VITE_STORAGE_PREFIX=SOY_
# VITE_WEBSOCKET_URL=ws://192.168.2.18:9999
# VITE_SERVICE_URL=http://192.168.2.16:9996
# # 开发环境(张涛)
# 开发环境(张涛)
# VITE_VIDEO_URL=ws://192.168.2.16:9999
# VITE_WEBSOCKET_URL=ws://192.168.2.16:9999
# VITE_SERVICE_URL=http://192.168.2.16:9998
......@@ -78,7 +78,7 @@ VITE_SERVICE_URL=http://192.168.2.14:9998
# VITE_WEBSOCKET_URL=ws://192.168.3.226:9999
# VITE_SERVICE_URL=http://192.168.3.226:9998
# # 测试环境(运营部)
# 测试环境(运营部)
# VITE_VIDEO_URL=ws://192.168.3.248:9999
# VITE_WEBSOCKET_URL=ws://192.168.3.248:9999
# VITE_SERVICE_URL=http://192.168.3.248:9998
......
......@@ -54,7 +54,8 @@ axios.interceptors.response.use((res) => {
return res;
}, (e) => {
window.location.href = '/login'
// window.location.href = '/login'
console.log('250227', e)
});
......
......@@ -16,7 +16,6 @@ declare module 'vue' {
ExceptionBase: typeof import('./../components/common/exception-base.vue')['default']
FullScreen: typeof import('./../components/common/full-screen.vue')['default']
GithubLink: typeof import('./../components/custom/github-link.vue')['default']
IconAntDesignReloadOutlined: typeof import('~icons/ant-design/reload-outlined')['default']
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
'IconIc:baselineArrowRightAlt': typeof import('~icons/ic/baseline-arrow-right-alt')['default']
......@@ -26,7 +25,6 @@ declare module 'vue' {
'IconIc:baselinePowerSettingsNew': typeof import('~icons/ic/baseline-power-settings-new')['default']
'IconIc:baselineSearch': typeof import('~icons/ic/baseline-search')['default']
'IconIc:baselineSlowMotionVideo': typeof import('~icons/ic/baseline-slow-motion-video')['default']
'IconIc:outlineVideoCameraFront': typeof import('~icons/ic/outline-video-camera-front')['default']
'IconIc:roundFileUpload': typeof import('~icons/ic/round-file-upload')['default']
'IconIc:roundTableView': typeof import('~icons/ic/round-table-view')['default']
'IconIc:twotoneFormatListBulleted': typeof import('~icons/ic/twotone-format-list-bulleted')['default']
......@@ -34,22 +32,18 @@ declare module 'vue' {
LookForward: typeof import('./../components/custom/look-forward.vue')['default']
MenuToggler: typeof import('./../components/common/menu-toggler.vue')['default']
NAlert: typeof import('naive-ui')['NAlert']
NBreadcrumb: typeof import('naive-ui')['NBreadcrumb']
NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem']
NButton: typeof import('naive-ui')['NButton']
NButtonGroup: typeof import('naive-ui')['NButtonGroup']
NCard: typeof import('naive-ui')['NCard']
NCheckbox: typeof import('naive-ui')['NCheckbox']
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
NCol: typeof import('naive-ui')['NCol']
NColorPicker: typeof import('naive-ui')['NColorPicker']
NDataTable: typeof import('naive-ui')['NDataTable']
NDatePicker: typeof import('naive-ui')['NDatePicker']
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider']
NDrawer: typeof import('naive-ui')['NDrawer']
NDrawerContent: typeof import('naive-ui')['NDrawerContent']
NDropdown: typeof import('naive-ui')['NDropdown']
NFlex: typeof import('naive-ui')['NFlex']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
......@@ -58,9 +52,7 @@ declare module 'vue' {
NIcon: typeof import('naive-ui')['NIcon']
NInfiniteScroll: typeof import('naive-ui')['NInfiniteScroll']
NInput: typeof import('naive-ui')['NInput']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLoadingBarProvider: typeof import('naive-ui')['NLoadingBarProvider']
NMenu: typeof import('naive-ui')['NMenu']
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
NModal: typeof import('naive-ui')['NModal']
NNotificationProvider: typeof import('naive-ui')['NNotificationProvider']
......@@ -71,17 +63,14 @@ declare module 'vue' {
NRadio: typeof import('naive-ui')['NRadio']
NRow: typeof import('naive-ui')['NRow']
NSelect: typeof import('naive-ui')['NSelect']
NSlider: typeof import('naive-ui')['NSlider']
NSpace: typeof import('naive-ui')['NSpace']
NSpin: typeof import('naive-ui')['NSpin']
NSplit: typeof import('naive-ui')['NSplit']
NStep: typeof import('naive-ui')['NStep']
NSteps: typeof import('naive-ui')['NSteps']
NSwitch: typeof import('naive-ui')['NSwitch']
NTab: typeof import('naive-ui')['NTab']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTooltip: typeof import('naive-ui')['NTooltip']
NTree: typeof import('naive-ui')['NTree']
NUpload: typeof import('naive-ui')['NUpload']
NWatermark: typeof import('naive-ui')['NWatermark']
......
......@@ -312,26 +312,26 @@ interface Account {
password: string;
}
const accounts = computed<Account[]>(() => [
{
key: 'super',
label: $t('page.login.pwdLogin.superAdmin'),
userName: 'Super',
password: '123456'
},
{
key: 'admin',
label: $t('page.login.pwdLogin.admin'),
userName: 'Admin',
password: '123456'
},
{
key: 'user',
label: $t('page.login.pwdLogin.user'),
userName: 'User',
password: '123456'
}
]);
// const accounts = computed<Account[]>(() => [
// {
// key: 'super',
// label: $t('page.login.pwdLogin.superAdmin'),
// userName: 'Super',
// password: '123456'
// },
// {
// key: 'admin',
// label: $t('page.login.pwdLogin.admin'),
// userName: 'Admin',
// password: '123456'
// },
// {
// key: 'user',
// label: $t('page.login.pwdLogin.user'),
// userName: 'User',
// password: '123456'
// }
// ]);
async function handleAccountLogin(account: Account) {
await authStore.login(account.userName, account.password);
......
......@@ -306,11 +306,16 @@ let selTaskKeys = ref([]);
// 新增用户表单
let form = reactive({
name: '用户名称0092000',
password: '987654321',
phone: '18363102084',
roleId: '3',
userName: '李四',
name: '',
password: '',
phone: '',
roleId: '',
userName: '',
// name: '用户名称0092000',
// password: '987654321',
// phone: '18363102084',
// roleId: '3',
// userName: '李四',
});
const cleanCreateFromInfo = () => {
......
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