替换v-model API 为 defineModel

This commit is contained in:
piexlmax(奇淼
2024-03-13 15:17:57 +08:00
parent 421304d4a3
commit e9100a9542
7 changed files with 201 additions and 208 deletions
+4
View File
@@ -129,6 +129,7 @@ import DashboardTable from '@/view/dashboard/dashboardTable/dashboardTable.vue'
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { useWeatherInfo } from '@/view/dashboard/weather.js'
import SelectImage from '@/components/selectImage/selectImage.vue'
defineOptions({
name: 'Dashboard'
@@ -136,6 +137,9 @@ defineOptions({
const weatherInfo = useWeatherInfo()
const testImg = ref('')
const testImgs = ref([])
const toolCards = ref([
{
label: '用户管理',
+2 -2
View File
@@ -6,11 +6,11 @@
/>
<div class="gva-btn-list">
<upload-common
v-model:imageCommon="imageCommon"
:image-common="imageCommon"
@on-success="getTableData"
/>
<upload-image
v-model:imageUrl="imageUrl"
:image-url="imageUrl"
:file-size="512"
:max-w-h="1080"
@on-success="getTableData"