Commit e7c5c0df by haojie

1

parent d572bccd
...@@ -232,6 +232,9 @@ export default defineComponent({ ...@@ -232,6 +232,9 @@ export default defineComponent({
UploadErrorCallback(); UploadErrorCallback();
Curfile.uploadStatus = false; Curfile.uploadStatus = false;
} }
})
.catch((e) => {
console.log(e);
}); });
}, 1000); }, 1000);
}); });
......
...@@ -29,16 +29,14 @@ instance.interceptors.response.use( ...@@ -29,16 +29,14 @@ instance.interceptors.response.use(
} }
}, },
(err) => { (err) => {
console.log(err);
if ('response' in err) { if ('response' in err) {
const { message: msg, status_code } = err.response.data; const { message: msg } = err.response.data;
if (status_code == 403) { if (err.response.data.indexOf('<Code>UserDisable</Code>') !== -1) {
// MessagePlugin.warning(i18n.global.t('message.loginInfo')); MessagePlugin.error('阿里云可能欠费');
router.replace({ } else {
path: '/',
});
return;
}
MessagePlugin.error(msg || '请求错误'); MessagePlugin.error(msg || '请求错误');
}
return err.response; return err.response;
} }
} }
......
...@@ -12,7 +12,7 @@ export default defineConfig(({ command, mode }) => { ...@@ -12,7 +12,7 @@ export default defineConfig(({ command, mode }) => {
let newDate = `${date.getFullYear()}-${ let newDate = `${date.getFullYear()}-${
date.getMonth() + 1 date.getMonth() + 1
}-${date.getDate()}--${date.getHours()}.${date.getMinutes()}`; }-${date.getDate()}--${date.getHours()}.${date.getMinutes()}`;
let api = 0 ? 'http://silkr.net' : 'http://video_publish.test'; let api = 1 ? 'http://42.194.143.229:90' : 'http://video_publish.test';
return { return {
base: '/', base: '/',
resolve: { resolve: {
......
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