|
@@ -32,6 +32,7 @@ import { ref } from 'vue'
|
|
|
import { saveResumeAdvantage } from '@/api/recruit/personal/resume'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
+import DOMPurify from 'dompurify'
|
|
|
const emit = defineEmits(['complete'])
|
|
|
|
|
|
const isEdit = ref(false)
|
|
@@ -61,6 +62,7 @@ const advantageRules = ref([
|
|
|
|
|
|
// 编辑
|
|
|
const handleSave = async () => {
|
|
|
+ advantage.value = DOMPurify.sanitize(advantage.value)
|
|
|
if (!advantage.value) return Snackbar.warning('请先输入个人优势!')
|
|
|
await saveResumeAdvantage({ content: advantage.value })
|
|
|
isEdit.value = false
|