|
|
@@ -48,6 +48,7 @@ import Button from '@/components/basic/Button.vue';
|
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
|
import type { Rules } from 'async-validator';
|
|
|
import { navTo } from '@/components/utils/PageAction';
|
|
|
+import { showError } from '@/common/composeabe/ErrorDisplay';
|
|
|
|
|
|
const DefaultAvatar = 'https://mncdn.wenlvti.net/app_static/xiangyuan/images/home/UserHead.png';
|
|
|
|
|
|
@@ -163,11 +164,7 @@ const submitForm = async () => {
|
|
|
}, 2000);
|
|
|
|
|
|
} catch (error: any) {
|
|
|
- uni.showToast({
|
|
|
- title: error?.message || '更新失败,请稍后重试',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
+ showError(error, '个人信息更新失败');
|
|
|
} finally {
|
|
|
loading.value = false;
|
|
|
}
|