提交 6e99ee24 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 移除微信公众号和小程序的授权逻辑

上级 4475f734
...@@ -24,6 +24,7 @@ const platformList: PlatformItem[] = [ ...@@ -24,6 +24,7 @@ const platformList: PlatformItem[] = [
// { label: '授权方昵称', prop: 'nikeName', value: '' } // { label: '授权方昵称', prop: 'nikeName', value: '' }
], ],
async onBeforeNext(stepActive) { async onBeforeNext(stepActive) {
return true
if (stepActive === 2) { if (stepActive === 2) {
const res = await handleSubmit() const res = await handleSubmit()
const { data } = await getWechatAuth({ connection_id: res.id, redirect_uri: location.href, auth_type: 1 }) const { data } = await getWechatAuth({ connection_id: res.id, redirect_uri: location.href, auth_type: 1 })
...@@ -142,6 +143,7 @@ const platformList: PlatformItem[] = [ ...@@ -142,6 +143,7 @@ const platformList: PlatformItem[] = [
icon: '100', icon: '100',
config_attributes: [{ label: '连接名称', prop: 'name', value: '小程序' }], config_attributes: [{ label: '连接名称', prop: 'name', value: '小程序' }],
async onBeforeNext(stepActive) { async onBeforeNext(stepActive) {
return true
if (stepActive === 2) { if (stepActive === 2) {
const res = await handleSubmit() const res = await handleSubmit()
const { data } = await getWechatAuth({ connection_id: res.id, redirect_uri: location.href, auth_type: 2 }) const { data } = await getWechatAuth({ connection_id: res.id, redirect_uri: location.href, auth_type: 2 })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论