|
@@ -15,7 +15,7 @@
|
|
:rules="advantageRules"
|
|
:rules="advantageRules"
|
|
></v-textarea>
|
|
></v-textarea>
|
|
<div class="text-end">
|
|
<div class="text-end">
|
|
- <v-btn class="half-button mr-3" variant="tonal" @click="isEdit = false">{{ $t('common.cancel') }}</v-btn>
|
|
|
|
|
|
+ <v-btn class="half-button mr-3" variant="tonal" @click="isEdit = false; getData()">{{ $t('common.cancel') }}</v-btn>
|
|
<v-btn color="primary" class="half-button" @click="handleSave">{{ $t('common.save') }}</v-btn>
|
|
<v-btn color="primary" class="half-button" @click="handleSave">{{ $t('common.save') }}</v-btn>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -42,7 +42,6 @@ const useStore = useUserStore()
|
|
const getData = async () => {
|
|
const getData = async () => {
|
|
await useStore.getUserBaseInfos(JSON.parse(localStorage.getItem('userInfo'))?.id)
|
|
await useStore.getUserBaseInfos(JSON.parse(localStorage.getItem('userInfo'))?.id)
|
|
const baseInfo = JSON.parse(localStorage.getItem('baseInfo'))
|
|
const baseInfo = JSON.parse(localStorage.getItem('baseInfo'))
|
|
- // if (!baseInfo) return
|
|
|
|
advantage.value = baseInfo?.advantage || ''
|
|
advantage.value = baseInfo?.advantage || ''
|
|
// 完成度展示
|
|
// 完成度展示
|
|
emit('complete', { status: Boolean(advantage.value), id: 'selfEvaluation' })
|
|
emit('complete', { status: Boolean(advantage.value), id: 'selfEvaluation' })
|