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-23 22:17:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
84eb7fbf5a670a0442d8a085ceb514f7d2137da2
84eb7fbf
1 parent
26c07fbc
fix 授权页写法调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
29 deletions
src/views/auth.vue
src/views/auth.vue
View file @
84eb7fb
<template>
<div class=""></div>
</template>
<script setup>
...
...
@@ -15,33 +14,11 @@ onMounted(() => {
* 该方法不会对 ASCII 字母和数字进行编码,也不会对这些 ASCII 标点符号进行编码: - _ . ! ~ * ' ( ) 。
* 其他字符(比如 :;/?:@&=+$,# 这些用于分隔 URI 组件的标点符号),都是由一个或多个十六进制的转义序列替换的。
*/
let url = encodeURIComponent(location.origin + location.pathname + $route.query.href); // 未授权的地址
if (import.meta.env.DEV) {
// TAG: 开发环境测试数据
location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}&input_openid=${import.meta.env.VITE_OPENID}`
} else {
location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}`;
}
let
raw_
url = encodeURIComponent(location.origin + location.pathname + $route.query.href); // 未授权的地址
// TAG: 开发环境测试数据
const short_url = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${raw_url}`;
location.href = import.meta.env.DEV
? `${short_url}&input_openid=${import.meta.env.VITE_OPENID}`
: `${short_url}`;
})
</script>
<script>
import mixin from 'common/mixin';
export default {
mixins: [mixin.init],
data() {
return {
}
},
mounted() {
},
methods: {
}
}
</script>
<style lang="less" scoped>
</style>
...
...
Please
register
or
login
to post a comment