Commit 1f5b626e by 李伟康

修改scene

1 parent 9b8b107d
...@@ -66,7 +66,10 @@ Page({ ...@@ -66,7 +66,10 @@ Page({
} = await wx.p.api.wechatApi.getSceneById({ } = await wx.p.api.wechatApi.getSceneById({
id id
}) })
if (code == 0) this.login(data.scene) let url = data.scene.split('url=').at(-1)
if (code == 0) this.login({
url
})
else throw {} else throw {}
} catch (error) { } catch (error) {
wx.p.wxApi.showToast(error || '获取scene失败') wx.p.wxApi.showToast(error || '获取scene失败')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!