Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI推理平台
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lichunliang
AI推理平台
Commits
8f63e605
Commit
8f63e605
authored
Feb 28, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 请求异常自动跳转登录处理、password测试数据去除
parent
9142674e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
39 deletions
+34
-39
.env
.env
+2
-2
index.ts
src/api/index.ts
+2
-1
components.d.ts
src/typings/components.d.ts
+0
-11
pwd-login.vue
src/views/_builtin/login/modules/pwd-login.vue
+20
-20
index.vue
src/views/manage/user/index.vue
+10
-5
No files found.
.env
View file @
8f63e605
...
...
@@ -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
...
...
src/api/index.ts
View file @
8f63e605
...
...
@@ -54,7 +54,8 @@ axios.interceptors.response.use((res) => {
return
res
;
},
(
e
)
=>
{
window
.
location
.
href
=
'
/login
'
// window.location.href = '/login'
console
.
log
(
'
250227
'
,
e
)
});
...
...
src/typings/components.d.ts
View file @
8f63e605
...
...
@@ -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
'
]
...
...
src/views/_builtin/login/modules/pwd-login.vue
View file @
8f63e605
...
...
@@ -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
);
...
...
src/views/manage/user/index.vue
View file @
8f63e605
...
...
@@ -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
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment