xiongzhu 3 years ago
parent
commit
cfec7e4d77
2 changed files with 3 additions and 1 deletions
  1. 2 0
      src/stores/config.js
  2. 1 1
      src/views/HomeView.vue

+ 2 - 0
src/stores/config.js

@@ -3,6 +3,8 @@ import { defineStore } from "pinia";
 
 export const useConfigStore = defineStore("config", () => {
     const config = ref(JSON.parse(localStorage.getItem("config") || "{}"));
+    config.value.phone = config.value.phone || "";
+    config.value.id = config.value.id || "";
     function save(val) {
         config.value = val;
         localStorage.setItem("config", JSON.stringify(val));

+ 1 - 1
src/views/HomeView.vue

@@ -68,7 +68,7 @@ const clickImg = () => {
             <div class="time">{{ currentTime }}</div>
             <div class="qr-content-wrapper">
                 <vue-qrcode
-                    value="https://h5.dingtalk.com/healthAct/index.html?qrCode=V56d19b4fd5023a596ef34f966fbcd49bd320000&b=wRArW8574gTr2Q3%2F3%2BQwPtPIn0VU4loVm8iw3NRMxSlLudh0ILeJSsLsJVRQ6tki#/result"
+                    value="https://h5.dingtalk.com/healthAct/index.html?qrCode=6GmXK9Diym6RxVauVhSTZKRSz6occsLK6wVY7dkS&b=vXZP9mYmdZtnU56ytit95RSPMmuNNkEL3U7hQTntYJUAXZ82RUAq6dQik9Bpob9pfxh8#/result"
                     :options="{
                         width: 250,
                         margin: 0,