添加打包命令 区分项目

This commit is contained in:
guanj
2025-10-09 11:32:15 +08:00
parent 10511a92a4
commit d82b26f388
11 changed files with 343 additions and 290 deletions

View File

@@ -23,10 +23,14 @@ window.addEventListener("message", (event) => {
});
// setTimeout(() => {
store.dispatch("loginAction", {
username: "cdf",
password: "@#001njcnpqs",
});
console.log("🚀 ~ import.meta.env.VITE_NAME:", import.meta.env.VITE_NAME)
if (import.meta.env.VITE_NAME == 'wuxi') {
store.dispatch("loginAction", {
username: "cdf",
password: "@#001njcnpqs",
});
}
// }, 100);
onBeforeMount(() => {
window.sessionStorage.setItem("token", "");
@@ -36,6 +40,7 @@ onBeforeMount(() => {
<style lang="less" scoped>
@import "@/assets/scss/element.scss";
.app {
width: 100vw;
height: 100vh;