Kar 2022-11-08 13:17:28 +05:30
parent 801d68aa35
commit ad8cecc0f9
2 changed files with 43 additions and 0 deletions

42
src/pages/tmp1.vue Normal file
View File

@ -0,0 +1,42 @@
<template>
<div>
<div v-if="isLoading">
<h2> Page loading ...</h2>
</div>
<div v-else>
<li v-for="(item, index) in site1">
{{ index }} - {{item}}
<!-- {{ item.domain }} - {{ index }} - {{ item.description }} -->
</li>
<h2>1. {{site1}}</h2> fghfgxh
<h2>1. {{site1[2].domain}}</h2> hjfghfgh
<h2>1. {{site1[3].domain}}</h2> fghfgh
</div>
</div>
</template>
<script>
export default {
data() {
return {
page: null,
isLoading: true,
site1:null
}
},
mounted: function () {
fetch('https://api8.siliconpin.com/items/dwd_site_list' )
// fetch('https://api8.siliconpin.com/items/scc22?slug=about-us')
.then(response => response.json())
.then(data => {
this.site1 = data.data.list
console.log(data)
this.isLoading = false
})
}
}
</script>
<style>
</style>

1
typed-router.d.ts vendored
View File

@ -46,6 +46,7 @@ declare module 'vue-router/auto/routes' {
'/notice/': RouteRecordInfo<'/notice/', '/notice', Record<never, never>, Record<never, never>>,
'/notice/[id]': RouteRecordInfo<'/notice/[id]', '/notice/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
'/temp/google': RouteRecordInfo<'/temp/google', '/temp/google', Record<never, never>, Record<never, never>>,
'/tmp1': RouteRecordInfo<'/tmp1', '/tmp1', Record<never, never>, Record<never, never>>,
}
}