revert: sync production code to verified test version
This commit is contained in:
@@ -13,12 +13,6 @@ import { requestAppPayment } from '@/utils/payment'
|
||||
const userStore = useUserStore()
|
||||
const webview = ref(null)
|
||||
const H5_BASE_URL = import.meta.env.VITE_AVATAR_H5_URL || 'https://digital.99hui.com/'
|
||||
|
||||
// Restore the native shell session before constructing the H5 URL. Without
|
||||
// this, the web-view opens as an anonymous H5 page and cannot enter the
|
||||
// authenticated avatar-management route.
|
||||
userStore.init()
|
||||
|
||||
const h5Url = computed(() => buildH5Url(H5_BASE_URL, userStore.$state))
|
||||
|
||||
function runtimeSurface() {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
export function buildH5Url(base, session) {
|
||||
const url = new URL(base)
|
||||
// This is deliberately explicit instead of relying on the timing of the
|
||||
// H5+ `plus` injection inside the embedded page.
|
||||
url.searchParams.set('nativeShell', 'uniapp')
|
||||
if (session.token) url.searchParams.set('token', session.token)
|
||||
if (session.userId) url.searchParams.set('userId', session.userId)
|
||||
if (session.nickname) url.searchParams.set('nickname', session.nickname)
|
||||
|
||||
Reference in New Issue
Block a user