|  | @@ -28,20 +28,19 @@ export default defineComponent({
 | 
	
		
			
				|  |  |      // window.atob() 解密
 | 
	
		
			
				|  |  |      // console.log(qs.parse(location.hash))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    const getAppIdAndCode = async (url?: string) => {
 | 
	
		
			
				|  |  | +    const getAppIdAndCode = async (url: string) => {
 | 
	
		
			
				|  |  |        try {
 | 
	
		
			
				|  |  |          const { data } = await request.get(state.platformApi + '/open/paramConfig/wechatAppId')
 | 
	
		
			
				|  |  |          // 判断是否有微信appId
 | 
	
		
			
				|  |  |          if (data) {
 | 
	
		
			
				|  |  |            closeToast()
 | 
	
		
			
				|  |  |            const replaceUrl =
 | 
	
		
			
				|  |  | -            'https://online.lexiaoya.cn/api-backend/open/agent/wx/oauth2?appId=' +
 | 
	
		
			
				|  |  | -            data +
 | 
	
		
			
				|  |  | -            '&redirectUrl=' +
 | 
	
		
			
				|  |  | -            url
 | 
	
		
			
				|  |  | +            `https://online.lexiaoya.cn/getWxCode?appid=${data}&state=STATE&redirect_uri=` +
 | 
	
		
			
				|  |  | +            encodeURIComponent(url)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |            console.log(data, 'aaaa')
 | 
	
		
			
				|  |  |            console.log(replaceUrl)
 | 
	
		
			
				|  |  | -          // window.location.replace(replaceUrl)
 | 
	
		
			
				|  |  | +          window.location.replace(replaceUrl)
 | 
	
		
			
				|  |  |            // goAuth(data, url)
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        } catch {
 | 
	
	
		
			
				|  | @@ -79,6 +78,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |      onMounted(async () => {
 | 
	
		
			
				|  |  |        // console.log(dayjs(Number(data.time)).subtract(3, 'hour').valueOf())
 | 
	
		
			
				|  |  |        // 判断是否是微信,只能微信中打开
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      console.log(import.meta.env)
 | 
	
		
			
				|  |  |        if (!browser().weixin) {
 | 
	
		
			
				|  |  |          forms.showPopup = true
 | 
	
		
			
				|  |  |          return
 |