提交 792fb3c8 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复注册会报TypeErroe:Cannot read properties of undefined (reading ’showToast‘)的问题

上级 1937c10f
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion" : "3", "vueVersion" : "2",
"h5" : { "h5" : {
"unipush" : { "unipush" : {
"enable" : false "enable" : false
......
...@@ -53,9 +53,6 @@ ...@@ -53,9 +53,6 @@
mutations mutations
} from '@/uni_modules/uni-id-pages/common/store.js' } from '@/uni_modules/uni-id-pages/common/store.js'
const {
loginSuccess
} = mutations
const uniIdCo = uniCloud.importObject("uni-id-co") const uniIdCo = uniCloud.importObject("uni-id-co")
export default { export default {
mixins: [mixin], mixins: [mixin],
...@@ -118,7 +115,7 @@ ...@@ -118,7 +115,7 @@
submitForm(params) { submitForm(params) {
uniIdCo.registerUser(this.formData).then(e => { uniIdCo.registerUser(this.formData).then(e => {
console.log(e); console.log(e);
loginSuccess() this.loginSuccess(e)
}) })
.catch(e => { .catch(e => {
console.log(e); console.log(e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册