Commit 27fa6f5c by 林家欣

修改项目因引入bootstrap.scss启动加载慢的问题

parent a980615a
body {
font-size: 62.5%;
font-family: $yahei;
}
// 查询表单 // 查询表单
.content-query { .content-query {
.el-form { .el-form {
......
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
@import "./_icon.scss"; @import "./_icon.scss";
@import "./_mixin.scss"; @import "./_mixin.scss";
@import "./_base.scss"; @import "./_base.scss";
@import "../../../node_modules/bootstrap/scss/bootstrap"; @import "../../../node_modules/bootstrap/scss/functions";
\ No newline at end of file @import "../../../node_modules/bootstrap/scss/variables";
@import "../../../node_modules/bootstrap/scss/mixins";
// @import "../../../node_modules/bootstrap/scss/bootstrap";
\ No newline at end of file
...@@ -60,7 +60,7 @@ function fetch(options) { ...@@ -60,7 +60,7 @@ function fetch(options) {
}) //响应数据的拦截 }) //响应数据的拦截
instance().then(res => { instance().then(res => {
const resData = res.data || {} const resData = res.data || {}
const code = String(resData.returnCode) const code = String(resData.code)
if (code === ResponseCode.success) { if (code === ResponseCode.success) {
resolve(resData) resolve(resData)
......
...@@ -38,7 +38,7 @@ export function cleanArray(actual) { ...@@ -38,7 +38,7 @@ export function cleanArray(actual) {
export const REQUEST_HEADER_TOKEN = "token" export const REQUEST_HEADER_TOKEN = "token"
export const ResponseCode = { export const ResponseCode = {
success: "0000", success: "0",
tokenError: "0202", tokenError: "0202",
tokenEmpty: "0203", tokenEmpty: "0203",
...@@ -67,8 +67,8 @@ export function checkResponseCodeAuthUnPermitted(resCode) { ...@@ -67,8 +67,8 @@ export function checkResponseCodeAuthUnPermitted(resCode) {
export function handleResponseSuccess(res = {}) { export function handleResponseSuccess(res = {}) {
return { return {
success: true, success: true,
returnCode: res.returnCode || ResponseCode.success, returnCode: res.code || ResponseCode.success,
returnMsg: res.returnMsg, returnMsg: res.msg,
data: res.data || null data: res.data || null
} }
} }
...@@ -76,8 +76,8 @@ export function handleResponseSuccess(res = {}) { ...@@ -76,8 +76,8 @@ export function handleResponseSuccess(res = {}) {
export function handleResponseError(res = {}) { export function handleResponseError(res = {}) {
return { return {
success: false, success: false,
returnCode: res.returnCode || ResponseCode.failed, returnCode: res.code || ResponseCode.failed,
returnMsg: res.returnMsg || "", returnMsg: res.msg || "",
data: res.data || null data: res.data || null
} }
} }
\ No newline at end of file
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="foot-bottom"> <div class="foot-bottom">
<div>版权所有:中国物品编码中心</div> <div>版权所有:中国物品编码中心</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>
<div>地址:北京市东城区安定门外大街138号皇</div> <div>地址:北京市东城区安定门外大街138号皇</div>
</div> </div>
......
...@@ -1095,9 +1095,9 @@ export default { ...@@ -1095,9 +1095,9 @@ export default {
this.homeBigImages(); this.homeBigImages();
}, },
// 首页大轮播图 // 首页大轮播图
homeBigImages() { async homeBigImages() {
console.log(this.$api, 'this.$api'); console.log(this.$api, 'this.$api');
const homeBigImagesRes = this.$api.home.homeBigImages(); const homeBigImagesRes = await this.$api.home.homeBigImages();
console.log(homeBigImagesRes, 'homeBigImagesRes'); console.log(homeBigImagesRes, 'homeBigImagesRes');
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment