Skip to content

Commit 0281889

Browse files
committed
fix: 更新用户资料获取逻辑,修复生日格式及新增字段
1 parent bdcae98 commit 0281889

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/views/dashboard/profile.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
size="large"
5656
type="date"
5757
placeholder="选择日期"
58-
value-format="yyyy-MM-dd"
5958
placement="bottom-start"
6059
:picker-options="birthday_options"
6160
></el-date-picker>
@@ -174,9 +173,15 @@ export default {
174173
getProfile() {
175174
getProfile().then((res) => {
176175
let data = res.data.data;
177-
let birth = new Date(data.birthday);
178-
data.birthday = birth;
179-
this.form = data;
176+
this.form.jx3_server = data.jx3_server;
177+
this.form.user_bio = data.user_bio;
178+
this.form.qq_number = data.qq_number;
179+
this.form.phone = data.phone;
180+
this.form.address = data.address;
181+
this.form.tv_id = data.tv_id;
182+
this.form.tv_type = data.tv_type;
183+
this.form.tuilan_id = data.tuilan_id;
184+
this.form.birthday = data.birthday ? new Date(data.birthday) : "";
180185
});
181186
},
182187
},

0 commit comments

Comments
 (0)