Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Smart_School
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
张伯涛
Smart_School
Commits
274a8f88
Commit
274a8f88
authored
May 08, 2022
by
hxhpg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码整体优化
parent
1afd16a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Whole.vue
src/components/common/Whole.vue
+0
-2
request.js
src/utils/request.js
+4
-4
No files found.
src/components/common/Whole.vue
View file @
274a8f88
...
...
@@ -19,14 +19,12 @@
<div
class=
"header-right"
>
<div
class=
"header-user-con"
>
<!-- 切换主题 -->
<div
class=
"btn-change-style"
@
click=
"handleChangeStyle()"
>
<el-tooltip
content=
"切换主题"
placement=
"bottom"
>
<i
:class=
"globalTheme ? 'el-icon-moon' : 'el-icon-sunny'"
></i>
</el-tooltip>
</div>
<!-- 用户头像 -->
<div
class=
"user-avator"
>
<img
src=
"@/assets/img/img.jpg"
/>
...
...
src/utils/request.js
View file @
274a8f88
...
...
@@ -24,10 +24,10 @@ service.interceptors.response.use(response => {
return
response
;
},
error
=>
{
console
.
log
(
'response error'
,
error
);
//
Message({
//
message: error.message,
//
type: 'error'
//
});
Message
({
message
:
error
.
message
,
type
:
'error'
});
return
Promise
.
reject
(
error
);
});
...
...
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