hookehuyr

fix 修复授权参数

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