|
|
@@ -34,9 +34,12 @@ export const useCountStore = defineStore('count1', {
|
|
|
console.log("执行")
|
|
|
// await new Promise((reslove)=>setTimeout(reslove,1000));
|
|
|
// this.addCount()
|
|
|
- await new Promise((reslove)=>setTimeout(reslove,1000));
|
|
|
- this.addCount1()
|
|
|
- console.log("结束",this.count);
|
|
|
+ // await new Promise((reslove)=>setTimeout(reslove,1000));
|
|
|
+ await this.addCount1();
|
|
|
+ // await setTimeout(() => {
|
|
|
+ // this.addCount1()
|
|
|
+ // }, 1000);
|
|
|
+ console.log("结束", this.count);
|
|
|
}
|
|
|
}
|
|
|
});
|