fix 使用公共通道认证报错问题

This commit is contained in:
bootx
2025-09-24 11:14:18 +08:00
parent f52e96afaa
commit 2b3a963f37
4 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
import { getWebsite } from '@/api/System.api'
import {useRoute} from "vue-router";
export const WEBSITE_CONFIG = ref<WebsiteConfig>({})

View File

@@ -179,7 +179,7 @@ async function init() {
if (orderAndConfig.value?.aggregateConfig?.needOpenId) {
// 不等于9说明是微信重定向过来的
if (isChannel !== '9') {
if (isChannel) {
if (isChannel === '1') {
// 通道认证
await channelAuth()
return

View File

@@ -33,7 +33,7 @@ onMounted(() => {
* 页面初始化
*/
async function init() {
if (isChannel) {
if (isChannel === '1') {
// 通道封装认证方式
channelAuth()
}

View File

@@ -148,7 +148,7 @@ async function init() {
if (data.needOpenId) {
// 不等于9说明是微信重定向过来的
if (isChannel !== '9') {
if (isChannel) {
if (isChannel === '1') {
// 通道认证
await channelAuth()
return