更新 'public/index.html'

This commit is contained in:
LittleBoy 2023-08-25 11:17:47 +08:00
parent 347c5f91dc
commit c479a5daeb

View File

@ -108,12 +108,16 @@
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
async mounted() { mounted() {
let data = await this.requestData('./project/'); this.loadProjectList();
console.log(data);
this.projects = data
}, },
methods: { methods: {
async loadProjectList(){
let data = await this.requestData('./project/');
console.log(data);
this.projects = data
setTimeout(()=>this.loadProjectList(),10000)
},
/** /**
* *
* @param {ProjectInfo} data * @param {ProjectInfo} data