添加打包命令 区分项目
This commit is contained in:
13
src/App.vue
13
src/App.vue
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user