Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
boyueCEnd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
游洁
boyueCEnd
Commits
644a8f8b
Commit
644a8f8b
authored
Dec 05, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
c2a5c88e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
.env.development
.env.development
+2
-2
axios.ts
src/api/axios.ts
+2
-5
ErpUserService.ts
src/services/ErpUserService.ts
+5
-0
systemConfig.ts
src/stores/systemConfig.ts
+5
-5
No files found.
.env.development
View file @
644a8f8b
# 开发环境配置 - 使用Mock数据
VITE_OTA_API_BASE_URL=http://
192.168.5.39:8081
/api/app/
VITE_ERP_API_BASE_URL=http://192.168.5.2
14:8700
/
VITE_OTA_API_BASE_URL=http://
localhost:19002
/api/app/
VITE_ERP_API_BASE_URL=http://192.168.5.2
04
/
VITE_FILEUPLOAD_API_BASE_URL=http://192.168.5.214:8120/
VITE_FILEPREVIEW_API_BASE_URL=http://192.168.5.214:8130/
# 开发环境特定配置
...
...
src/api/axios.ts
View file @
644a8f8b
...
...
@@ -100,12 +100,9 @@ service.interceptors.response.use(
response
.
data
.
resultCode
==
ApiResult
.
REMOTE_LOGIN
)
{
ResultMessage
.
Error
(
response
.
data
.
message
)
console
.
log
(
response
.
data
.
message
)
setTimeout
(()
=>
{
useUserStore
().
signOutAsync
()
},
1000
)
}
window
.
location
.
href
=
'/login'
//
window.location.href = '/login'
datas
=
response
return
Promise
.
resolve
(
datas
)
}
else
{
...
...
src/services/ErpUserService.ts
View file @
644a8f8b
...
...
@@ -35,6 +35,11 @@ export default class ErpUserService {
return
Api
.
Post
(
'admin_get_EmployeeList'
,
msg
)
}
static
async
GetGroupAdmininfoAsync
(
id
:
number
):
Promise
<
HttpResponse
>
{
const
msg
=
{
Id
:
id
}
return
Api
.
Post
(
'admin_get_GetIdByAdminAccount'
,
msg
)
}
/**
* 谷歌登录
* @param credential 谷歌token
...
...
src/stores/systemConfig.ts
View file @
644a8f8b
...
...
@@ -161,10 +161,10 @@ export const useSystemConfigStore = defineStore('systemConfig', {
* 获取分组信息
*/
async
getGroupInfoAsync
(
groupId
:
number
)
{
// const groupInfo = await ErpUserService.GetGroupI
nfoAsync(groupId)
//
if(groupInfo.data.resultCode === ApiResult.SUCCESS) {
// this.erpAdminUserId = groupInfo.data.data.pageData[0].EmployeeId || 0
//
}
const
groupInfo
=
await
ErpUserService
.
GetGroupAdmini
nfoAsync
(
groupId
)
if
(
groupInfo
.
data
.
resultCode
===
ApiResult
.
SUCCESS
)
{
this
.
erpAdminUserId
=
groupInfo
.
data
.
data
}
},
/**
...
...
@@ -193,7 +193,7 @@ export const useSystemConfigStore = defineStore('systemConfig', {
this
.
platformConfig
=
data
.
platform
||
null
this
.
config
=
data
.
config
this
.
groupId
=
data
.
erpGroupId
||
2
this
.
groupId
=
data
.
erpGroupId
// 如果有租户ID,加载代理商配置
if
(
this
.
tenantId
)
{
await
this
.
getGroupInfoAsync
(
this
.
groupId
)
...
...
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