This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// utils/wxsdk.js —— 封装微信扫一扫
|
||||
// utils/wxsdk.js —— 封装微信扫一扫 不用旧的了
|
||||
import { wechatApi } from '@/api/index.js'
|
||||
|
||||
const wx = window.jWeixin
|
||||
@@ -8,7 +8,7 @@ const wx = window.jWeixin
|
||||
*/
|
||||
export async function initWxConfig() {
|
||||
const url = window.location.href.split('#')[0]
|
||||
|
||||
console.log(url);
|
||||
try {
|
||||
const data = await wechatApi.getJssdkConfig(url)
|
||||
const { app_id, timestamp, nonce_str, signature } = data
|
||||
|
||||
Reference in New Issue
Block a user