Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
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
吴迪
gs1
Commits
27fa6f5c
Commit
27fa6f5c
authored
Nov 11, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目因引入bootstrap.scss启动加载慢的问题
parent
a980615a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
11 deletions
+20
-11
_base.scss
src/assets/css/_base.scss
+5
-0
main.scss
src/assets/css/main.scss
+5
-2
fetch.js
src/axios/fetch.js
+1
-1
parameter.js
src/axios/parameter.js
+6
-5
footer.vue
src/components/layout/footer.vue
+1
-1
index.vue
src/views/Home/index.vue
+2
-2
No files found.
src/assets/css/_base.scss
View file @
27fa6f5c
body
{
font-size
:
62
.5%
;
font-family
:
$yahei
;
}
// 查询表单
.content-query
{
.el-form
{
...
...
src/assets/css/main.scss
View file @
27fa6f5c
...
...
@@ -3,4 +3,7 @@
@import
"./_icon.scss"
;
@import
"./_mixin.scss"
;
@import
"./_base.scss"
;
@import
"../../../node_modules/bootstrap/scss/bootstrap"
;
\ No newline at end of file
@import
"../../../node_modules/bootstrap/scss/functions"
;
@import
"../../../node_modules/bootstrap/scss/variables"
;
@import
"../../../node_modules/bootstrap/scss/mixins"
;
//
@
import
"../../../node_modules/bootstrap/scss/bootstrap"
;
\ No newline at end of file
src/axios/fetch.js
View file @
27fa6f5c
...
...
@@ -60,7 +60,7 @@ function fetch(options) {
})
//响应数据的拦截
instance
().
then
(
res
=>
{
const
resData
=
res
.
data
||
{}
const
code
=
String
(
resData
.
returnC
ode
)
const
code
=
String
(
resData
.
c
ode
)
if
(
code
===
ResponseCode
.
success
)
{
resolve
(
resData
)
...
...
src/axios/parameter.js
View file @
27fa6f5c
...
...
@@ -38,7 +38,7 @@ export function cleanArray(actual) {
export
const
REQUEST_HEADER_TOKEN
=
"token"
export
const
ResponseCode
=
{
success
:
"0
000
"
,
success
:
"0"
,
tokenError
:
"0202"
,
tokenEmpty
:
"0203"
,
...
...
@@ -67,8 +67,8 @@ export function checkResponseCodeAuthUnPermitted(resCode) {
export
function
handleResponseSuccess
(
res
=
{})
{
return
{
success
:
true
,
returnCode
:
res
.
returnC
ode
||
ResponseCode
.
success
,
returnMsg
:
res
.
returnM
sg
,
returnCode
:
res
.
c
ode
||
ResponseCode
.
success
,
returnMsg
:
res
.
m
sg
,
data
:
res
.
data
||
null
}
}
...
...
@@ -76,8 +76,8 @@ export function handleResponseSuccess(res = {}) {
export
function
handleResponseError
(
res
=
{})
{
return
{
success
:
false
,
returnCode
:
res
.
returnC
ode
||
ResponseCode
.
failed
,
returnMsg
:
res
.
returnM
sg
||
""
,
returnCode
:
res
.
c
ode
||
ResponseCode
.
failed
,
returnMsg
:
res
.
m
sg
||
""
,
data
:
res
.
data
||
null
}
}
\ No newline at end of file
src/components/layout/footer.vue
View file @
27fa6f5c
...
...
@@ -45,7 +45,7 @@
<div
class=
"foot-bottom"
>
<div>
版权所有:中国物品编码中心
</div>
<div>
京ICP备
11036137号-10 | 京公网安备11010102001434
号
京ICP备
<span
class=
"tahoma"
>
11036137
</span>
号-
<span
class=
"tahoma"
>
10
</span>
| 京公网安备
<span
class=
"tahoma"
>
11010102001434
</span>
号
</div>
<div>
地址:北京市东城区安定门外大街138号皇
</div>
</div>
...
...
src/views/Home/index.vue
View file @
27fa6f5c
...
...
@@ -1095,9 +1095,9 @@ export default {
this
.
homeBigImages
();
},
// 首页大轮播图
homeBigImages
()
{
async
homeBigImages
()
{
console
.
log
(
this
.
$api
,
'this.$api'
);
const
homeBigImagesRes
=
this
.
$api
.
home
.
homeBigImages
();
const
homeBigImagesRes
=
await
this
.
$api
.
home
.
homeBigImages
();
console
.
log
(
homeBigImagesRes
,
'homeBigImagesRes'
);
},
...
...
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