简历编辑功能bug修复
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<dict-Label dictType="area" :value="Number(userInfo.area)"></dict-Label>
|
||||
</view>
|
||||
<view class="mys-list">
|
||||
<view class="cards button-click" v-for="(title, index) in userInfo.jobTitle" :key="index">
|
||||
<view class="cards button-click" v-for="(title, index) in (userInfo.jobTitle || [])" :key="index">
|
||||
{{ title }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -236,9 +236,9 @@ const handleEditOrAdd = () => {
|
||||
|
||||
// 编辑单个经历
|
||||
const handleEditItem = (item) => {
|
||||
// 跳转到编辑页面,传递编辑标识和数据
|
||||
const itemData = encodeURIComponent(JSON.stringify(item));
|
||||
navTo(`/packageA/pages/addWorkExperience/addWorkExperience?type=edit&data=${itemData}`);
|
||||
// 使用本地存储传递数据,避免URL长度限制导致小程序框架报错
|
||||
uni.setStorageSync('editWorkExperienceData', item);
|
||||
navTo('/packageA/pages/addWorkExperience/addWorkExperience?type=edit');
|
||||
};
|
||||
|
||||
// 删除单个经历(带确认弹窗)
|
||||
|
||||
Reference in New Issue
Block a user