Commit 27fa6f5c by 林家欣

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

parent a980615a
body {
font-size: 62.5%;
font-family: $yahei;
}
// 查询表单
.content-query {
.el-form {
......
......@@ -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
......@@ -60,7 +60,7 @@ function fetch(options) {
}) //响应数据的拦截
instance().then(res => {
const resData = res.data || {}
const code = String(resData.returnCode)
const code = String(resData.code)
if (code === ResponseCode.success) {
resolve(resData)
......
......@@ -38,7 +38,7 @@ export function cleanArray(actual) {
export const REQUEST_HEADER_TOKEN = "token"
export const ResponseCode = {
success: "0000",
success: "0",
tokenError: "0202",
tokenEmpty: "0203",
......@@ -67,8 +67,8 @@ export function checkResponseCodeAuthUnPermitted(resCode) {
export function handleResponseSuccess(res = {}) {
return {
success: true,
returnCode: res.returnCode || ResponseCode.success,
returnMsg: res.returnMsg,
returnCode: res.code || ResponseCode.success,
returnMsg: res.msg,
data: res.data || null
}
}
......@@ -76,8 +76,8 @@ export function handleResponseSuccess(res = {}) {
export function handleResponseError(res = {}) {
return {
success: false,
returnCode: res.returnCode || ResponseCode.failed,
returnMsg: res.returnMsg || "",
returnCode: res.code || ResponseCode.failed,
returnMsg: res.msg || "",
data: res.data || null
}
}
\ No newline at end of file
......@@ -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>
......
......@@ -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');
},
......
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