Browse Source

fix: popup toggle render issue

Gerald 3 years ago
parent
commit
731c4b5fe0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/popup/views/app.vue

+ 3 - 2
src/popup/views/app.vue

@@ -189,6 +189,7 @@
 </template>
 
 <script>
+import { reactive } from 'vue';
 import Tooltip from 'vueleton/lib/tooltip';
 import { INJECT_AUTO } from '@/common/consts';
 import options from '@/common/options';
@@ -207,10 +208,10 @@ const NAME = `${manifest.name} ${manifest.version}`;
 const SCRIPT_CLS = '.script';
 let mousedownElement;
 
-const optionsData = {
+const optionsData = reactive({
   isApplied: options.get('isApplied'),
   filtersPopup: options.get('filtersPopup') || {},
-};
+});
 options.hook((changes) => {
   if ('isApplied' in changes) {
     optionsData.isApplied = changes.isApplied;