|
@@ -1539,13 +1539,6 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
data.loading = false;
|
|
|
- // 重新登录
|
|
|
- if (res.code === 5000) {
|
|
|
- window.location.href = `${
|
|
|
- /(192|localhost)/.test(location.origin) ? "https://test.lexiaoya.cn" : location.origin
|
|
|
- }/classroom`;
|
|
|
- return;
|
|
|
- }
|
|
|
return res;
|
|
|
};
|
|
|
const setSaveLoading = (tips: boolean) => {
|
|
@@ -1579,13 +1572,6 @@ export default defineComponent({
|
|
|
filePath: wavUrl,
|
|
|
coverImg: pngUrl,
|
|
|
});
|
|
|
- // 重新登录
|
|
|
- if (res.code === 5000) {
|
|
|
- window.location.href = `${
|
|
|
- /(192|localhost)/.test(location.origin) ? "https://test.lexiaoya.cn" : location.origin
|
|
|
- }/classroom`;
|
|
|
- return;
|
|
|
- }
|
|
|
} else {
|
|
|
const res = await api_musicSheetCreationSave({
|
|
|
name: data.musicName || "未命名乐谱",
|
|
@@ -1611,13 +1597,6 @@ export default defineComponent({
|
|
|
}
|
|
|
location.hash = hash[0] + "?" + qs.stringify(qs_data);
|
|
|
}
|
|
|
- // 重新登录
|
|
|
- if (res.code === 5000) {
|
|
|
- window.location.href = `${
|
|
|
- /(192|localhost)/.test(location.origin) ? "https://test.lexiaoya.cn" : location.origin
|
|
|
- }/classroom`;
|
|
|
- return;
|
|
|
- }
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
@@ -1978,13 +1957,6 @@ export default defineComponent({
|
|
|
message.info("已是最新版本");
|
|
|
}
|
|
|
}
|
|
|
- // 重新登录
|
|
|
- if (res.code === 5000) {
|
|
|
- window.location.href = `${
|
|
|
- /(192|localhost)/.test(location.origin) ? "https://test.lexiaoya.cn" : location.origin
|
|
|
- }/classroom`;
|
|
|
- return;
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
return () => (
|