Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
06b39e80
Commit
06b39e80
authored
May 07, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 切换商户
parent
74f33746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
change-store.vue
src/components/layout/components/change-store.vue
+7
-1
No files found.
src/components/layout/components/change-store.vue
View file @
06b39e80
...
...
@@ -2,7 +2,7 @@
<div
v-if=
"storeList.length > 0"
>
<el-dropdown
@
command=
"onChangeStore"
>
<span
class=
"change-store-btn"
>
切换商户
{{
getActiveStoreName
}}
<i
class=
"iconfont-hb3 iconxiajiantou change-store-icon"
></i>
</span>
<el-dropdown-menu
slot=
"dropdown"
class=
"change-store-popper"
>
...
...
@@ -54,6 +54,12 @@ export default {
isExpired
:
false
};
},
computed
:
{
getActiveStoreName
()
{
const
store
=
this
.
storeList
.
find
(
el
=>
el
.
enterpriseId
==
this
.
activedStoreId
)
||
{};
return
store
.
brandName
?
store
.
brandName
:
''
;
}
},
created
()
{
this
.
getStoreList
();
this
.
activedStoreId
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'userInfos'
)
||
'{}'
).
enterpriseId
;
...
...
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