Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
7aa0fe42
Commit
7aa0fe42
authored
Jun 30, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: logo显示功能完成
parent
754ac5e9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
package.json
package.json
+1
-1
src/main.js
src/main.js
+2
-0
src/pages/frame/components/header/LayoutTopHeaderAvatar.vue
src/pages/frame/components/header/LayoutTopHeaderAvatar.vue
+6
-1
src/pages/user/components/info.vue
src/pages/user/components/info.vue
+2
-1
No files found.
package.json
View file @
7aa0fe42
src/main.js
View file @
7aa0fe42
...
@@ -68,6 +68,8 @@ loadGuards(guards, { router, store, i18n, message: Vue.prototype.$message });
...
@@ -68,6 +68,8 @@ loadGuards(guards, { router, store, i18n, message: Vue.prototype.$message });
loadResponseInterceptor
({
router
});
loadResponseInterceptor
({
router
});
Vue
.
prototype
.
$fileUrl
=
'
http://platform.kuopu.net:9300/
'
;
new
Vue
({
new
Vue
({
router
,
router
,
store
,
store
,
...
...
src/pages/frame/components/header/LayoutTopHeaderAvatar.vue
View file @
7aa0fe42
<
template
>
<
template
>
<a-dropdown>
<a-dropdown>
<div
class=
"tw-inline-flex tw-cursor-pointer tw-items-center"
>
<div
class=
"tw-inline-flex tw-cursor-pointer tw-items-center"
>
<a-avatar
class=
"tw-mr-3"
size=
"small"
shape=
"circle"
:src=
"userInfo.userAvatar"
/>
<a-avatar
class=
"tw-mr-3"
size=
"small"
shape=
"circle"
:src=
"`$
{$fileUrl}${userInfo.userAvatar}`"
/>
<span>
{{
userInfo
.
userName
}}
</span>
<span>
{{
userInfo
.
userName
}}
</span>
</div>
</div>
<a-menu
style=
"width: 150px"
slot=
"overlay"
>
<a-menu
style=
"width: 150px"
slot=
"overlay"
>
...
...
src/pages/user/components/info.vue
View file @
7aa0fe42
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<img
<img
style=
"width: 100px;height: 100px"
style=
"width: 100px;height: 100px"
class=
"tw-max-w-full tw-max-h-full tw-rounded-full tw-my-4"
class=
"tw-max-w-full tw-max-h-full tw-rounded-full tw-my-4"
:src=
"`
//
$
{form.userAvatar}`"
:src=
"`
$
{$fileUrl}
${form.userAvatar}`"
/>
/>
<my-upload
v-model=
"form.userAvatar"
/>
<my-upload
v-model=
"form.userAvatar"
/>
</div>
</div>
...
@@ -53,6 +53,7 @@ export default {
...
@@ -53,6 +53,7 @@ export default {
},
},
watch
:
{
watch
:
{
'
$store.state.userInfo
'
(
userInfo
)
{
'
$store.state.userInfo
'
(
userInfo
)
{
console
.
log
(
'
userInfo
'
);
this
.
form
.
userName
=
userInfo
.
userName
;
this
.
form
.
userName
=
userInfo
.
userName
;
this
.
form
.
fixedPhone
=
userInfo
.
fixedPhone
;
this
.
form
.
fixedPhone
=
userInfo
.
fixedPhone
;
this
.
form
.
mobilePhone
=
userInfo
.
mobilePhone
;
this
.
form
.
mobilePhone
=
userInfo
.
mobilePhone
;
...
...
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