xiongzhu 3 yıl önce
ebeveyn
işleme
7a7526601b
3 değiştirilmiş dosya ile 8 ekleme ve 11 silme
  1. 5 4
      index.html
  2. 1 3
      src/views/DistributionPage.vue
  3. 2 4
      src/views/SettingPage.vue

+ 5 - 4
index.html

@@ -10,7 +10,7 @@
     <meta name="format-detection" content="telephone=no" />
     <meta name="msapplication-tap-highlight" content="no" />
 
-
+    <meta name="color-scheme" content="dark" />
     <!-- add to homescreen for ios -->
     <meta name="apple-mobile-web-app-capable" content="yes" />
     <meta name="apple-mobile-web-app-title" content="Ionic App" />
@@ -23,13 +23,14 @@
     <script type="module" src="/src/main.js"></script>
     <script src="https://assets.salesmartly.com/js/project_9355_9754_1670553307.js"></script>
     <!-- <script src="//code.tidio.co/kguf93rbmc3c9icmkbgbh3akvjznunfo.js" async></script> -->
-    <!-- <script src="./jquery-3.6.1.min.js"></script>
+    <script src="./jquery-3.6.1.min.js"></script>
     <script>
         $("#s-chat-plugin").ready(function () {
             var head = $("#s-chat-plugin").contents().find("head");
-           // head.append($('<meta name="color-scheme" content="light dark">'));
+           head.append($('<meta name="color-scheme" content="light dark">'));
+           head.append($('<style>textarea {color: black; background: white;}</style>'));
         });
-    </script> -->
+    </script>
 </body>
 
 </html>

+ 1 - 3
src/views/DistributionPage.vue

@@ -120,7 +120,7 @@ export default {
     computed: {
         ...mapState(useUserStore, ['user'])
     },
-    created() {
+    ionViewWillEnter() {
         this.getStat()
         this.getLatestRecords()
         if (this.user && this.user.superiorId) {
@@ -131,8 +131,6 @@ export default {
                 })
                 .catch(() => {})
         }
-    },
-    ionViewWillEnter() {
         this.showToolbar = this.$route.meta.showToolbar === true
     },
     methods: {

+ 2 - 4
src/views/SettingPage.vue

@@ -76,13 +76,13 @@
                     <van-cell class="not" v-if="showConsole" title="测试app" is-link @click="goTest" />
                 </van-cell-group>
 
-                <van-cell-group :border="false">
+                <!-- <van-cell-group :border="false">
                     <van-cell :title="$t('settings.darkMode')" @click="toggleDark()">
                         <template #right-icon>
                             <van-switch :model-value="isDark" />
                         </template>
                     </van-cell>
-                </van-cell-group>
+                </van-cell-group> -->
 
                 <van-action-sheet
                     v-model:show="show"
@@ -178,8 +178,6 @@ export default {
                 localStorage.setItem('showConsole', new Date().getTime() + 60 * 60 * 1000)
                 eruda.init()
                 this.clickNum = 0
-
-                this.$store.commit('setShowConsole', true)
                 return
             } else {
                 if (this.timeout) {