新增删除账号功能

This commit is contained in:
qcl_123 2026-02-10 11:48:26 +08:00
parent 428718a1ad
commit 61a28bfcc1
3 changed files with 7 additions and 3 deletions

View File

@ -48,7 +48,9 @@
content: that.$t("verifyDeleteAccount"),
success: function(res) {
if (res.confirm) {
that.$model.getDeleteAccount({}).then((res) => {
that.$model.getDeleteAccount({
code: that.code
}).then((res) => {
if (res.code != 0) return
that.$tools.msg($t('msgDelete'));
uni.setStorageSync('token', null)

File diff suppressed because one or more lines are too long

View File

@ -209,7 +209,9 @@ var _default = {
content: that.$t("verifyDeleteAccount"),
success: function success(res) {
if (res.confirm) {
that.$model.getDeleteAccount({}).then(function (res) {
that.$model.getDeleteAccount({
code: that.code
}).then(function (res) {
if (res.code != 0) return;
that.$tools.msg($t('msgDelete'));
uni.setStorageSync('token', null);