diff --git a/collect_information/package.json b/collect_information/package.json index 3efb25d..348ad9a 100644 --- a/collect_information/package.json +++ b/collect_information/package.json @@ -58,8 +58,8 @@ "@tarojs/taro": "3.6.26", "dayjs": "^1.11.13", "pinia": "^2.2.2", - "vue": "^3.0.0", - "vuex": "^4.0.2" + "vue": "^3.0.0" + }, "devDependencies": { "@babel/core": "^7.8.0", diff --git a/collect_information/src/store/daily.ts b/collect_information/src/store/daily.ts index 844ed89..8fa40c7 100644 --- a/collect_information/src/store/daily.ts +++ b/collect_information/src/store/daily.ts @@ -12,19 +12,14 @@ export const useDailyStore = defineStore('daily', { this.userdailyinspection = [...data] }, change_base64_1(data) { - // console.log("🚀 ~ change_base64_1 ~ data:", data) this.base64_1 = data }, change_base64_2(data) { this.base64_2 = data }, - cleardailtcolour() { - this.userdailyinspection = { - ...this.userdailyinspection, - markColor: this.userdailyinspection.markColor, - markColor1: this.userdailyinspection.markColor, - comment: '' - } + clearSignData() { + this.base64_1 = '' + this.base64_2 = '' } }, getters: { diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index c4e5a64..23eccdf 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -1,6 +1,5 @@