From c2f95b0b9090a2394b5b068582b932a5e57b86aa Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 05 九月 2023 18:19:37 +0800 Subject: [PATCH] 雷达图 新增综合风险排名 数据接入配置 --- src/stores/counter.js | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/stores/counter.ts b/src/stores/counter.js similarity index 73% rename from src/stores/counter.ts rename to src/stores/counter.js index b6757ba..fb8a7a3 100644 --- a/src/stores/counter.ts +++ b/src/stores/counter.js @@ -1,11 +1,12 @@ -import { ref, computed } from 'vue' import { defineStore } from 'pinia' - export const useCounterStore = defineStore('counter', () => { + + const count = ref(0) const doubleCount = computed(() => count.value * 2) - function increment() { - count.value++ + function increment(num) { + count.value = num + count.value + 1 + return 1 } return { count, doubleCount, increment } -- Gitblit v1.9.3