Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
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
2022-05-14 14:31:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f974b80a56b8d44691732d10262c4be91d95c68d
f974b80a
1 parent
a8bb7d9c
fix 授权input_openid临时测试
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/utils/axios.js
src/views/auth.vue
src/utils/axios.js
View file @
f974b80
...
...
@@ -16,8 +16,6 @@ axios.interceptors.request.use(
// 绑定默认请求头
config
.
params
=
_
.
merge
(
config
.
params
,
{
f
:
'voice'
,
// TEMP:临时使用测试 OPENID, 正式版需要删除
input_openid
:
'api-test-openid'
})
return
config
;
},
...
...
src/views/auth.vue
View file @
f974b80
...
...
@@ -11,7 +11,9 @@ const $route = useRoute();
onMounted(() => {
// php需要先跳转链接获取openid
let url = encodeURIComponent(location.origin + location.pathname + $route.query.href); // 未授权的地址
location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}`
// TEMP:临时使用测试 OPENID, 正式版需要删除
let text = 'api-test-openid'
location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}&input_openid=${text}`
})
</script>
...
...
Please
register
or
login
to post a comment