fix: 🧩 修复富文本编辑器视频上传限制(150M)

This commit is contained in:
2025-08-26 17:27:49 +08:00
parent 29d6ba59c9
commit 0dab4cc524
8 changed files with 37 additions and 21 deletions

View File

@@ -46,13 +46,13 @@ import { ElMessageBox } from "element-plus";
import { outLogin } from "@/utils/outLogin";
import { useKeepAliveStore } from "@/stores/modules/keepAlive";
import { getLanguageListApi, getLanguageCutoverApi } from "@/api/modules/global";
// import { HOME_URL } from "@/config";
// import { useRouter } from "vue-router";
import { HOME_URL } from "@/config";
import { useRouter } from "vue-router";
import { useTabsStore } from "@/stores/modules/tabs";
const tabStore = useTabsStore();
const userStore = useUserStore();
// const router = useRouter();
const router = useRouter();
const keepAliveStore = useKeepAliveStore();
document.cookie = `lang=zh_cn`;
const langs = ref<any>([]);
@@ -80,9 +80,19 @@ const getLanguageCutover = async (id: any, type: any) => {
});
name.value = names[0]?.country_name;
if (type === "click") {
tabStore.closeMultipleTab("/admin/index");
tabStore.setTabs([
{
icon: "",
title: "首页",
path: "/admin/index",
name: "home",
close: true
}
]);
keepAliveStore.setKeepAliveName();
router.push(HOME_URL);
setTimeout(() => {
router.push(HOME_URL);
}, 500);
}
}
};
@@ -97,14 +107,6 @@ const handleCommand = (val: string) => {
type: "warning"
}).then(async () => {
await getLanguageCutover(val, "click");
// // // 1. 退出登录
// // const result: any = await logoutApi();
// // if (result?.code === 0) {
// // getLanguageCutover(val);
// // // outLogin();
// // } else {
// // useMsg("error", result.message);
// // }
});
};

View File

@@ -86,9 +86,23 @@ const closeOtherTab = () => {
// Close All
const closeAllTab = () => {
tabStore.closeMultipleTab();
tabStore.setTabs([
{
icon: "",
title: "首页",
path: "/admin/index",
name: "home",
close: true
}
]);
keepAliveStore.setKeepAliveName();
router.push(HOME_URL);
setTimeout(() => {
router.push(HOME_URL);
}, 500);
// tabStore.closeMultipleTab();
// keepAliveStore.setKeepAliveName();
// router.push(HOME_URL);
};
</script>

View File

@@ -45,7 +45,7 @@ const keepAliveStore = useKeepAliveStore();
const tabsMenuValue = ref(route.fullPath);
const tabsMenuList = computed(() => tabStore.tabsMenuList);
console.log(tabStore.tabsMenuList, "===============value================");
onMounted(() => {
tabsDrop();
initTabs();