Skip to content

Commit 632647d

Browse files
committed
feat: 修改侧边栏宽度为210
1 parent 81b351e commit 632647d

File tree

5 files changed

+18
-37
lines changed

5 files changed

+18
-37
lines changed

package-lock.json

Lines changed: 12 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
"lint-staged": {
8686
"*.{js,vue}": [
8787
"prettier --write",
88-
"vue-cli-service lint"
88+
"vue-cli-service lint",
89+
"git add"
8990
]
9091
}
9192
}

src/assets/styles/realize/lin-variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$theme: #3963bc;
22

33
/* 布局 */
4-
$sidebar-width: 190px;
4+
$sidebar-width: 210px;
55
$sidebar-background: #192a5e;
66

77
$navbar-height: 30px;

src/lin/plugins/axios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ _axios.interceptors.response.use(
148148
console.log('msg', msg)
149149
// 本次请求添加 params 参数:showBackend 为 true, 弹出后端返回错误信息
150150
if (params && params.showBackend) {
151-
;[message] = msg
151+
message = msg
152152
} else {
153153
// 弹出前端自定义错误信息
154154
const errorArr = Object.entries(ErrorCode).filter(v => v[0] === error_code.toString())
@@ -165,7 +165,7 @@ _axios.interceptors.response.use(
165165
message,
166166
type: 'error',
167167
})
168-
resolve(res.data)
168+
reject()
169169
})
170170
},
171171
error => {

src/views/home/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { NavBar, SideBar, AppMain, ReuseTab, MenuTab, BackTop } from '@/componen
3131
const navBarHeight = 66 // header高度
3232
const reuseTabHeight = 70 // 历史记录栏高度
3333
const marginHeight = 20 // 历史记录栏与舞台的间距
34-
const sideBarWidth = '190px'
34+
const sideBarWidth = '210px'
3535
const totalHeight = navBarHeight + reuseTabHeight + marginHeight
3636
3737
export default {

0 commit comments

Comments
 (0)