Przeglądaj źródła

修改router history
修改home 页面跳转地址

limeng 1 rok temu
rodzic
commit
7755b2c74e

+ 2 - 2
ssp-client-vue3/src/router/index.js

@@ -1,10 +1,10 @@
-import { createRouter, createWebHashHistory } from 'vue-router';
+import { createRouter, createWebHistory } from 'vue-router';
 
 /**
  * 创建 vue-router 实例
  */
 const router = createRouter({
-    history: createWebHashHistory(),
+    history: createWebHistory(),
     routes: [
         // 首页
         {

+ 1 - 1
ssp-server/src/main/resources/templates/home.html

@@ -4,6 +4,6 @@
 </head>
 <body>
 <h2>SSO 平台首页</h2>
-<p><a href='/sso/auth?redirect=http://127.0.0.1:5173?back=http://127.0.0.1:5173' target='_blank'> 进入Client1系统 </a></p>
+<p><a href='/sso/auth?redirect=http://localhost:5173/sso-login?back=http://localhost:5173' target='_blank'> 进入Client1系统 </a></p>
 </body>
 </html>