abcdb447 by renchao@pashanhoo.com

style:全局修改

1 parent 83d5ddee
......@@ -2,7 +2,7 @@
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-07-21 10:30:53
* @LastEditTime: 2023-08-16 15:16:49
*/
import axios from 'axios'
import Router from '@/router'
......@@ -54,10 +54,10 @@ service.interceptors.response.use(
*/
if (response.status == 200) {
return response.data;
}else if (response.status == 2002){
} else if (response.status == 2002) {
Message.error(response.message);
}else {
handleErrorData(response.data);
} else {
handleErrorData(response.status);
}
return response;
},
......@@ -97,10 +97,7 @@ service.interceptors.response.use(
)
//对错误信息的处理函数
function handleErrorData (errMes) {
if (errMes.message) {
Message.error(errMes.message);
} else {
switch (errMes.code) {
switch (errMes) {
case 401:
Message.error("未授权,请重新登录!");
break;
......@@ -117,7 +114,6 @@ function handleErrorData (errMes) {
Message.error("服务正在联调中,请稍后!");
break;
}
}
}
export default service
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-15 10:57:30
* @LastEditTime: 2023-08-16 15:00:12
-->
<template>
<div class="content">
......@@ -46,7 +46,6 @@
},
methods: {
getBdcdyh (val) {
console.log(val, ';222222222222');
// this.loadData(val);
},
/**
......@@ -65,6 +64,8 @@
this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点
this.loadComponent(this.defaultNode.form);
})
} else {
this.$message.error(res.message);
}
})
this.currentSelectProps = {
......@@ -90,7 +91,6 @@
* @author: renchao
*/
loadComponent (form) {
console.log(form, 'form');
this.componentTag = (r) =>
require.ensure([], () => r(require("@/views/registerBook/" + form)))
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-02 09:53:35
* @LastEditTime: 2023-08-16 14:59:46
-->
<template>
<div class="from-clues">
......@@ -239,7 +239,6 @@
* @author: miaofang
*/
openBook (row) {
console.log("的急急急急急急");
var param = {
bdcdyid: row.bdcdyid,
qllx: row.qllx,
......