hookehuyr

fix 修复授权参数

1 <!-- 1 <!--
2 * @Date: 2024-09-26 13:36:06 2 * @Date: 2024-09-26 13:36:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-10 16:00:46 4 + * @LastEditTime: 2024-12-13 18:36:13
5 * @FilePath: /hager/src/App.vue 5 * @FilePath: /hager/src/App.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
56 this.$router.replace({ 56 this.$router.replace({
57 path: '/auth', 57 path: '/auth',
58 query: { 58 query: {
59 - href: location.hash, 59 + href: location.href,
60 } 60 }
61 }); 61 });
62 } 62 }
......
...@@ -18,7 +18,7 @@ export default { ...@@ -18,7 +18,7 @@ export default {
18 * 该方法不会对 ASCII 字母和数字进行编码,也不会对这些 ASCII 标点符号进行编码: - _ . ! ~ * ' ( ) 。 18 * 该方法不会对 ASCII 字母和数字进行编码,也不会对这些 ASCII 标点符号进行编码: - _ . ! ~ * ' ( ) 。
19 * 其他字符(比如 :;/?:@&=+$,# 这些用于分隔 URI 组件的标点符号),都是由一个或多个十六进制的转义序列替换的。 19 * 其他字符(比如 :;/?:@&=+$,# 这些用于分隔 URI 组件的标点符号),都是由一个或多个十六进制的转义序列替换的。
20 */ 20 */
21 - let raw_url = encodeURIComponent(location.origin + location.pathname + this.$route.query.href); // 未授权的地址 21 + let raw_url = encodeURIComponent(this.$route.query.href); // 未授权的地址
22 // TAG: 开发环境测试数据 22 // TAG: 开发环境测试数据
23 const short_url = `/srv/?m=srv&a=openid&res=${raw_url}`; 23 const short_url = `/srv/?m=srv&a=openid&res=${raw_url}`;
24 location.href = import.meta.env.DEV 24 location.href = import.meta.env.DEV
......