mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 02:29:47 +08:00
上传图片错误优化
This commit is contained in:
@@ -95,3 +95,12 @@ export function setDepName(token: string) {
|
||||
export function clearDepName() {
|
||||
window.localStorage.removeItem("playedu-frontend-depatmentName");
|
||||
}
|
||||
|
||||
export function changeAppUrl(str: string) {
|
||||
let key = str.slice(str.length - 1);
|
||||
if (key === "/") {
|
||||
return str;
|
||||
} else {
|
||||
return str + "/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user