ref: 优化Local 类导入

This commit is contained in:
lbw 2023-03-07 09:46:17 +08:00
parent fde413f0e8
commit 4ffa036ebc
5 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,7 @@ import { storeToRefs } from 'pinia';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
import { useThemeConfig } from '/@/stores/themeConfig';
import other from '/@/utils/other';
import { Session } from '/@/utils/storage';
import { Local, Session } from '/@/utils/storage';
import mittBus from '/@/utils/mitt';
import setIntroduction from '/@/utils/setIconfont';

View File

@ -48,7 +48,6 @@
</template>
<script setup lang="ts" name="upload-excel">
import { Local } from '/@/utils/storage';
import { useMessage } from '/@/hooks/message';
import other from '/@/utils/other';
import { Session } from '/@/utils/storage';

View File

@ -1,7 +1,7 @@
<script setup lang="ts" name="authredirect">
import request from '/@/utils/request';
import other from '/@/utils/other';
import { rule } from '/@/utils/validate';
import { validateNull } from '/@/utils/validate';
import { Session } from '/@/utils/storage';
import { useUserInfo } from '/@/stores/userInfo';
import { useMessageBox } from '/@/hooks/message';
@ -11,7 +11,7 @@ onMounted(async () => {
// code ticket
let code = other.getQueryString(url, 'code');
if (rule.validateNull(code)) {
if (validateNull(code)) {
code = other.getQueryString(url, 'ticket');
}

View File

@ -8,7 +8,7 @@
<script setup lang="ts" name="register">
import { fetchList } from '/@/api/admin/tenant';
import { Session } from '/@/utils/storage';
import { Local, Session } from '/@/utils/storage';
const tenantList = ref([]);
const tenant = ref();

View File

@ -39,7 +39,7 @@
<script setup lang="ts" name="payCd">
import { useBuyApi } from '/@/api/pay/cd';
import { Local } from '/@/utils/storage';
import { Session } from '/@/utils/storage';
//
const VueQrcode = defineAsyncComponent(() => import('@chenfengyuan/vue-qrcode'));