解决ts爆红

This commit is contained in:
TimSpan 2024-08-08 17:34:43 +08:00
parent ca78a54090
commit 76fa20c052
2 changed files with 9 additions and 7 deletions

View File

@ -224,7 +224,7 @@
:initial-index="4" :initial-index="4"
fit="cover" fit="cover"
/> />
<video width="150" height="150" v-if="item.type == 'video'" :src="item.url" autoplay="autoplay" controls></video> <video width="150" height="150" v-if="item.type == 'video'" :src="item.url" autoplay="true" controls></video>
</li> </li>
</ul> </ul>
</div> </div>
@ -401,7 +401,9 @@ const cascaderChange = (value: any, selectedOptions: any): void => {
expandedKeys.value = value expandedKeys.value = value
// scrollToMatchedNode(title) //bug // scrollToMatchedNode(title) //bug
} }
interface anyType {
[key: string]: any
}
const showIframe = ref(false) const showIframe = ref(false)
const videoUrl = ref('') const videoUrl = ref('')
@ -1015,7 +1017,7 @@ const getAi = () => {
}) })
} }
//city //city
const total = ref({}) const total = ref<anyType>({})
const gettotal = () => { const gettotal = () => {
let city = JSON.parse(localStorage.getItem('user-stores'))['userInfo']['levelvalue'] let city = JSON.parse(localStorage.getItem('user-stores'))['userInfo']['levelvalue']
api api
@ -1876,9 +1878,9 @@ const initMap = () => {
--el-dialog-bg-color: #06325f; --el-dialog-bg-color: #06325f;
} }
:deep(.el-dialog__headerbtn .el-dialog__close) { //:deep(.el-dialog__headerbtn .el-dialog__close) {
// color: #32DCFB; // color: #32DCFB;
} //}
:deep(.el-dialog__header) { :deep(.el-dialog__header) {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;

View File

@ -35,7 +35,7 @@
<div style="display: inline-block"> <div style="display: inline-block">
<el-progress <el-progress
style="width: 65px; display: inline-block; vertical-align: middle; margin-left: 10px; margin-top: -5px" style="width: 65px; display: inline-block; vertical-align: middle; margin-left: 10px; margin-top: -5px"
:percentage="(i / config.data.length).toFixed(2) * 100" :percentage="+(i / config.data.length).toFixed(2) * 100"
:stroke-width="15" :stroke-width="15"
:text-inside="true" :text-inside="true"
></el-progress> ></el-progress>