Browse Source

清理缓存

john.hong 2 years ago
parent
commit
4011844480
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/pages/parkingFee/mixins/parkingFee.js

+ 4 - 0
src/pages/parkingFee/mixins/parkingFee.js

@@ -578,11 +578,15 @@ export default {
     // 处理扫码结果: 组装参数,剩余流程,在 缴费支付页面 实现
     async qrCodesRule(code) {
       try {
+
         const qrCodesres = await qrCodes(code); // 无牌车扫码
         // 记录buildingId,确保 buildingId 是最新的数据
         window.localStorage.setItem('buildingId', qrCodesres.buildingId);
         // 如果是无牌车扫码:出场
         console.log('模拟出场', this.unlicensedInfo.type);
+        this.$store.commit('cachedViews/DEL_CACHED_VIEW', {
+          name: 'parkingFeeDetail',
+        });
         // return
         if (this.unlicensedInfo?.type === 'unlicensedOut') {
           // 查询用户是否存在车牌