【修改】sousuo zhikong
This commit is contained in:
@@ -50,8 +50,6 @@ instance.interceptors.response.use(function (response) {
|
|||||||
} else if (response.data.respCode === '-1') {
|
} else if (response.data.respCode === '-1') {
|
||||||
// Message.error(response.data.message)
|
// Message.error(response.data.message)
|
||||||
// if (response.data.status == 401) {
|
// if (response.data.status == 401) {
|
||||||
store.commit('saveUserInfo', null)
|
|
||||||
store.commit('saveUserInfo', null)
|
|
||||||
store.commit('savePathUrl', null)
|
store.commit('savePathUrl', null)
|
||||||
store.commit('setHandleProcess', null)
|
store.commit('setHandleProcess', null)
|
||||||
// router.push('/login')
|
// router.push('/login')
|
||||||
@@ -82,8 +80,6 @@ instance.interceptors.response.use(function (response) {
|
|||||||
// 登录过期
|
// 登录过期
|
||||||
console.log( error.response.data.status,"error.response")
|
console.log( error.response.data.status,"error.response")
|
||||||
if (error.response.data.status == 401) {
|
if (error.response.data.status == 401) {
|
||||||
store.commit('saveUserInfo', null)
|
|
||||||
store.commit('saveUserInfo', null)
|
|
||||||
store.commit('savePathUrl', null)
|
store.commit('savePathUrl', null)
|
||||||
store.commit('setHandleProcess', null)
|
store.commit('setHandleProcess', null)
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
@@ -97,8 +93,6 @@ instance.interceptors.response.use(function (response) {
|
|||||||
}
|
}
|
||||||
// 登录过期
|
// 登录过期
|
||||||
if (error.response.status === 500) {
|
if (error.response.status === 500) {
|
||||||
store.commit('saveUserInfo', null)
|
|
||||||
store.commit('saveUserInfo', null)
|
|
||||||
store.commit('savePathUrl', null)
|
store.commit('savePathUrl', null)
|
||||||
store.commit('setHandleProcess', null)
|
store.commit('setHandleProcess', null)
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
|
|||||||
@@ -794,7 +794,7 @@ export default {
|
|||||||
if (!this.reportF.year) {
|
if (!this.reportF.year) {
|
||||||
return this.$message.warning('请检查报告年份') && false;
|
return this.$message.warning('请检查报告年份') && false;
|
||||||
}
|
}
|
||||||
if (!this.reportF.labelList) {
|
if (this.reportF.labelList.length < 1) {
|
||||||
return this.$message.warning('请检查标签') && false;
|
return this.$message.warning('请检查标签') && false;
|
||||||
}
|
}
|
||||||
// if (!this.reportF.labelOneId || !this.reportF.labelOneName || this.reportF.labelOneName === '-' ) {
|
// if (!this.reportF.labelOneId || !this.reportF.labelOneName || this.reportF.labelOneName === '-' ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user