@ -3,6 +3,8 @@
<component name="ChangeListManager">
<list default="true" id="4b7d7b72-f5b8-41e4-85d5-6267bdc12fc5" name="默认变更列表" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/App.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.vue" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -99,7 +101,7 @@
<workItem from="1638524838907" duration="8000" />
<workItem from="1638752962691" duration="9088000" />
<workItem from="1638768088746" duration="2255000" />
<workItem from="1638770403708" duration="6218000" />
<workItem from="1638770403708" duration="11594000" />
</task>
<task id="LOCAL-00001" summary="2021 12 01">
<created>1638357539757</created>
@ -13,7 +13,8 @@
"qs": "^6.10.1",
"typescript": "^4.5.2",
"vue": "^3.0.4",
"vue-router": "^4.0.12"
"vue-router": "^4.0.12",
"jsencrypt": "3.0.0-rc.1"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.0.4",
@ -7,7 +7,7 @@
import { onMounted, reactive, ref, toRefs, watch } from 'vue';
import { useRouter } from 'vue-router';
import Header from './components/Shared/Header.vue';
import {clear} from "./uilts/storage";
export default {
name: 'App',
@ -21,12 +21,12 @@
window.onresize = () => getRem(1920, 100);
})
watch(() => router.currentRoute.value.path,
(current, prev) => {
showHeader.value = current === "/Login" ? false : true;
}
);
const getRem = (pwidth, prem) => {
let html = document.getElementsByTagName("html")[0];
let oWidth = document.body.clientWidth || document.documentElement.clientWidth;