Explorar o código

切换手机和app的时候 清除sessionstorage

chauncey hai 1 ano
pai
achega
cc07933807
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/views/page-config/PageCamera.vue

+ 4 - 0
src/views/page-config/PageCamera.vue

@@ -3,8 +3,12 @@
 </template>
 
 <script lang="ts" setup>
+import { onMounted } from 'vue';
 import BasicLayoutEntry from './component/BasicLayoutEntry.vue';
 import { LayoutConfigType } from '@/types/page-config/type';
+onMounted(() => {
+    sessionStorage.removeItem('selectCompanyId')
+})
 </script>
 
 <style lang="scss" scoped></style>