|
@@ -231,6 +231,7 @@ import { cloneDeep, get } from 'lodash-es'
|
|
const $checkRes = inject('$checkRes')
|
|
const $checkRes = inject('$checkRes')
|
|
// 接口
|
|
// 接口
|
|
import { CompanyYearStore } from '@/store/api/user/companyYear'
|
|
import { CompanyYearStore } from '@/store/api/user/companyYear'
|
|
|
|
+import { watch } from 'vue'
|
|
const yearStore = CompanyYearStore()
|
|
const yearStore = CompanyYearStore()
|
|
const activeName = ref('first')
|
|
const activeName = ref('first')
|
|
// 表单
|
|
// 表单
|
|
@@ -324,6 +325,15 @@ const toClose = () => {
|
|
yearForm.value = {}
|
|
yearForm.value = {}
|
|
dialog.value = { show: false }
|
|
dialog.value = { show: false }
|
|
}
|
|
}
|
|
|
|
+watch(
|
|
|
|
+ form,
|
|
|
|
+ () => {
|
|
|
|
+ if (!form.value.logo) form.value.logo = []
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ immediate: true //初始化立即执行
|
|
|
|
+ }
|
|
|
|
+)
|
|
</script>
|
|
</script>
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
.index {
|
|
.index {
|