lex 9 månader sedan
förälder
incheckning
98e346c4db
2 ändrade filer med 4 tillägg och 2 borttagningar
  1. 3 1
      src/App.tsx
  2. 1 1
      vite.config.ts

+ 3 - 1
src/App.tsx

@@ -3,7 +3,7 @@ import { NConfigProvider, zhCN, dateZhCN, NModal } from 'naive-ui';
 import { AppProvider } from './components/Application';
 import { RouterView, useRouter } from 'vue-router';
 import setting from './settings/designSetting';
-import { lighten } from './utils';
+import { eventGlobal, lighten } from './utils';
 import RouterError from './components/RouterError';
 import { useRegisterSW } from 'virtual:pwa-register/vue';
 import { useUserStore } from './store/modules/users';
@@ -167,6 +167,8 @@ export default defineComponent({
           : '';
         userStore.logout();
         history.go(0);
+      } else if (e.data?.api === 'onAuthNotInstalled') {
+        eventGlobal.emit('auth-not-installed');
       }
     };
 

+ 1 - 1
vite.config.ts

@@ -24,7 +24,7 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://dev.kt.colexiu.com/';
-const proxyUrl = 'https://test.kt.colexiu.com';
+const proxyUrl = 'https://dev.kt.colexiu.com';
 // const proxyUrl = 'http://192.168.3.14:7989';
 const now = new Date().getTime();
 export default defineConfig(() => {