Skip to content

Commit

Permalink
chore: use ts in dataConfig page
Browse files Browse the repository at this point in the history
  • Loading branch information
LaicZhang committed Apr 23, 2022
1 parent dda857e commit abc65c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/SetDataConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<script>
</script>

<script setup>
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue'
import { readConfigApi, requestDataApi, writeConfigApi } from '../api'
Expand Down Expand Up @@ -90,9 +90,9 @@ const options = [
value: 'http://www.weather.com.cn/textFC/gat.shtml',
},
]
const savedConfig = {}
const savedConfig: any = {}
const dataFormRef = ref(null)
const dataConfig = reactive({})
const dataConfig: any = reactive({})
const onSubmit = () => {
writeConfig()
}
Expand Down Expand Up @@ -124,7 +124,7 @@ const readConfig = async() => {
const writeConfig = async() => {
if (dataConfig === {})
return
const res = await writeConfigApi(dataConfig)
await writeConfigApi(dataConfig)
}
const resetForm = () => {
readConfig()
Expand Down

0 comments on commit abc65c0

Please sign in to comment.