Prechádzať zdrojové kódy

Merge branch 'ding_sso' of ruiqigogs/yf-portal-vue into master

yanghao 2 týždňov pred
rodič
commit
9d8dac7aae
3 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 4 0
      components.d.ts
  2. 1 0
      index.html
  3. 1 1
      src/components/home/header.vue

+ 4 - 0
components.d.ts

@@ -14,10 +14,14 @@ declare module 'vue' {
     CardItem: typeof import('./src/components/home/CardItem.vue')['default']
     ElButton: typeof import('element-plus/es')['ElButton']
     ElCard: typeof import('element-plus/es')['ElCard']
+    ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
     ElDrawer: typeof import('element-plus/es')['ElDrawer']
     ElDropdown: typeof import('element-plus/es')['ElDropdown']
     ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
     ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
+    ElForm: typeof import('element-plus/es')['ElForm']
+    ElFormItem: typeof import('element-plus/es')['ElFormItem']
+    ElInput: typeof import('element-plus/es')['ElInput']
     ElTabPane: typeof import('element-plus/es')['ElTabPane']
     ElTabs: typeof import('element-plus/es')['ElTabs']
     ElTag: typeof import('element-plus/es')['ElTag']

+ 1 - 0
index.html

@@ -7,6 +7,7 @@
     <title>%VITE_APP_TITLE%</title>
     <script src="https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script>
     <script src='https://g.alicdn.com/code/npm/@ali/dingtalk-h5-remote-debug/0.1.3/index.js'></script>
+    <script src='https://g.alicdn.com/code/npm/@ali/dingtalk-h5-remote-debug/0.1.3/index.js'></script>
     <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/js-base64@3.6.0/base64.min.js"></script>
   </head>
   <body>

+ 1 - 1
src/components/home/header.vue

@@ -337,7 +337,7 @@ const onUserCommand = async (command: string) => {
   if (command === "logout") {
     await userStore.loginOut();
 
-    router.replace("/login");
+    router.replace("/");
   }
 };
 </script>