Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-14 10:59:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
527de042be2a81e805360775d7006e4cac9f336c
527de042
1 parent
4007096b
fix 修复授权参数
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/App.vue
src/views/auth.vue
src/App.vue
View file @
527de04
<!--
* @Date: 2024-09-26 13:36:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-1
0 16:00:46
* @LastEditTime: 2024-12-1
3 18:36:13
* @FilePath: /hager/src/App.vue
* @Description: 文件描述
-->
...
...
@@ -56,7 +56,7 @@ export default {
this.$router.replace({
path: '/auth',
query: {
href: location.h
ash
,
href: location.h
ref
,
}
});
}
...
...
src/views/auth.vue
View file @
527de04
...
...
@@ -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
...
...
Please
register
or
login
to post a comment