|
|
@@ -604,7 +604,11 @@ export default {
|
|
|
this.resultImage = data.image
|
|
|
this.srcList = [data.image]
|
|
|
} else {
|
|
|
- this.$message.error(data.msg || data.errorContent || '请求出错,请联系管理员!');
|
|
|
+ if (result.code == 401) {
|
|
|
+ this.$router.push(`/login`);
|
|
|
+ } else {
|
|
|
+ this.$message.error(result.msg || result.errorContent || '请求出错,请联系管理员!');
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
console.log('JSON 对象12', result)
|
|
|
@@ -612,7 +616,12 @@ export default {
|
|
|
this.resultImage = result.image
|
|
|
this.srcList = [result.image]
|
|
|
} else {
|
|
|
- this.$message.error(result.msg || result.errorContent || '请求出错,请联系管理员!');
|
|
|
+ if (result.code == 401) {
|
|
|
+ this.$router.push(`/login`);
|
|
|
+ } else {
|
|
|
+ this.$message.error(result.msg || result.errorContent || '请求出错,请联系管理员!');
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
} catch (e) {
|