Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
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
李苏
sgaqgl-vue
Commits
11106b7d
Commit
11106b7d
authored
Nov 11, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像
parent
18dc1f16
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
156 additions
and
140 deletions
+156
-140
Navbar.vue
src/layout/components/Navbar.vue
+11
-2
main.js
src/main.js
+145
-138
No files found.
src/layout/components/Navbar.vue
View file @
11106b7d
...
...
@@ -17,7 +17,8 @@
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<img
:src=
"'https://p9-passport.byteacctimg.com/img/user-avatar/9e20870d6d673cafe6a0e22aa2f2aa96~300x300.image'"
class=
"user-avatar"
>
<el-avatar>
{{user}}
</el-avatar>
<!-- <img :src="'https://p9-passport.byteacctimg.com/img/user-avatar/9e20870d6d673cafe6a0e22aa2f2aa96~300x300.image'" class="user-avatar"> -->
<i
class=
"el-icon-caret-bottom"
/>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
...
...
@@ -58,6 +59,14 @@ export default {
RuoYiGit
,
RuoYiDoc
},
mounted
(){
this
.
user
=
localStorage
.
getItem
(
'username'
)
||
'用户'
},
data
(){
return
{
user
:
'用户'
}
},
computed
:
{
...
mapGetters
([
'sidebar'
,
...
...
src/main.js
View file @
11106b7d
...
...
@@ -119,12 +119,15 @@ Vue.prototype.$asRun = function() {
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
fnArr
[
i
](
e
[
i
])
}
}
)
}
)
}
/* alert */
Vue
.
prototype
.
$warning
=
function
(
text
)
{
var
text
=
text
||
'警告'
this
.
$message
({
showClose
:
true
,
message
:
text
,
type
:
'warning'
this
.
$message
({
showClose
:
true
,
message
:
text
,
type
:
'warning'
});
}
Vue
.
prototype
.
$success
=
function
(
text
)
{
...
...
@@ -134,7 +137,9 @@ Vue.prototype.$success = function(text) {
}
Vue
.
prototype
.
$error
=
function
(
text
)
{
var
text
=
text
||
'no info'
this
.
$message
({
showClose
:
true
,
message
:
text
,
type
:
'error'
this
.
$message
({
showClose
:
true
,
message
:
text
,
type
:
'error'
});
}
...
...
@@ -145,5 +150,7 @@ new Vue({
el
:
'#app'
,
router
,
store
,
render
:
h
=>
h
(
App
)
render
:
function
(
h
){
return
h
(
App
)
}
})
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