Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
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
张伯涛
bigDataSystem
Commits
e4fe9c87
Commit
e4fe9c87
authored
Dec 20, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复没有默认type(模块)的问题
parent
1e3c7ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
UpgradePrompt.vue
src/layouts/default/header/components/UpgradePrompt.vue
+4
-2
No files found.
src/layouts/default/header/components/UpgradePrompt.vue
View file @
e4fe9c87
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
{
h
,
ref
,
onMounted
,
computed
}
from
'vue'
;
import
{
h
,
ref
,
onMounted
,
computed
}
from
'vue'
;
import
{
Modal
,
Segmented
}
from
'ant-design-vue'
;
import
{
Modal
,
Segmented
}
from
'ant-design-vue'
;
import
{
useI18n
}
from
'@/hooks/web/useI18n'
;
import
{
useI18n
}
from
'@/hooks/web/useI18n'
;
import
{
useUserStore
,
useUserStoreWithOut
}
from
'@/store/modules/user'
;
import
{
useUserStore
,
useUserStoreWithOut
}
from
'@/store/modules/user'
;
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
import
{
import
{
editBucketData
,
editBucketData
,
...
@@ -65,7 +65,8 @@
...
@@ -65,7 +65,8 @@
if
(
localStorage
.
getItem
(
'segmentValue'
)
!==
null
)
{
if
(
localStorage
.
getItem
(
'segmentValue'
)
!==
null
)
{
value
.
value
=
localStorage
.
getItem
(
'segmentValue'
);
value
.
value
=
localStorage
.
getItem
(
'segmentValue'
);
}
else
{
}
else
{
switch
(
localStorage
.
getItem
(
'matchedTypes'
)[
0
])
{
let
type
=
localStorage
.
getItem
(
'matchedTypes'
)[
0
];
switch
(
type
)
{
case
'1'
:
case
'1'
:
value
.
value
=
'基础平台'
;
value
.
value
=
'基础平台'
;
break
;
break
;
...
@@ -82,6 +83,7 @@
...
@@ -82,6 +83,7 @@
value
.
value
=
'数据要素'
;
value
.
value
=
'数据要素'
;
break
;
break
;
}
}
localStorage
.
setItem
(
'type'
,
type
);
localStorage
.
setItem
(
'segmentValue'
,
value
.
value
);
localStorage
.
setItem
(
'segmentValue'
,
value
.
value
);
}
}
router
.
replace
(
localStorage
.
getItem
(
'firstChild'
));
router
.
replace
(
localStorage
.
getItem
(
'firstChild'
));
...
...
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