hookehuyr

馃巿 perf: chrome鎵撳嵃璀﹀憡澶勭悊

...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
15 "@vitejs/plugin-legacy": "^1.8.2", 15 "@vitejs/plugin-legacy": "^1.8.2",
16 "@vueuse/core": "^8.5.0", 16 "@vueuse/core": "^8.5.0",
17 "animate.css": "^4.1.1", 17 "animate.css": "^4.1.1",
18 + "default-passive-events": "^2.0.0",
18 "global": "^4.4.0", 19 "global": "^4.4.0",
19 "html2canvas": "^1.4.1", 20 "html2canvas": "^1.4.1",
20 "jquery": "^3.6.0", 21 "jquery": "^3.6.0",
......
...@@ -4,6 +4,7 @@ import router from './router'; ...@@ -4,6 +4,7 @@ import router from './router';
4 import App from './App.vue'; 4 import App from './App.vue';
5 // import axios from './utils/axios'; 5 // import axios from './utils/axios';
6 import axios from '@/utils/axios'; 6 import axios from '@/utils/axios';
7 +import 'default-passive-events'; // 瑙e喅Chrome鎺у埗鍙皀on-passive event listener杈撳嚭闂
7 import { createPinia } from 'pinia'; 8 import { createPinia } from 'pinia';
8 9
9 const pinia = createPinia(); 10 const pinia = createPinia();
......
1 import { defineStore } from 'pinia'; 1 import { defineStore } from 'pinia';
2 // import { testStore } from './test'; // 鍙︿竴涓猻tore 2 // import { testStore } from './test'; // 鍙︿竴涓猻tore
3 import _ from 'lodash'; 3 import _ from 'lodash';
4 -import { useRoute, useRouter } from 'vue-router' 4 +import { useRouter } from 'vue-router'
5 -const $route = useRoute();
6 5
7 export const mainStore = defineStore('main', { 6 export const mainStore = defineStore('main', {
8 state: () => { 7 state: () => {
......
...@@ -131,6 +131,11 @@ ...@@ -131,6 +131,11 @@
131 resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz" 131 resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz"
132 integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q== 132 integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
133 133
134 +"@types/lru-cache@^4.1.1":
135 + version "4.1.3"
136 + resolved "https://mirrors.cloud.tencent.com/npm/@types%2flru-cache/-/lru-cache-4.1.3.tgz#ec5eb6dd818b7a06336cfb7368723164b195f818"
137 + integrity sha512-QjCOmf5kYwekcsfEKhcEHMK8/SvgnneuSDXFERBuC/DPca2KJIO/gpChTsVb35BoWLBpEAJWz1GFVEArSdtKtw==
138 +
134 "@types/moment@^2.13.0": 139 "@types/moment@^2.13.0":
135 version "2.13.0" 140 version "2.13.0"
136 resolved "https://mirrors.cloud.tencent.com/npm/@types%2fmoment/-/moment-2.13.0.tgz#604ebd189bc3bc34a1548689404e61a2a4aac896" 141 resolved "https://mirrors.cloud.tencent.com/npm/@types%2fmoment/-/moment-2.13.0.tgz#604ebd189bc3bc34a1548689404e61a2a4aac896"
...@@ -967,6 +972,11 @@ deep-eql@^3.0.1: ...@@ -967,6 +972,11 @@ deep-eql@^3.0.1:
967 dependencies: 972 dependencies:
968 type-detect "^4.0.0" 973 type-detect "^4.0.0"
969 974
975 +default-passive-events@^2.0.0:
976 + version "2.0.0"
977 + resolved "https://mirrors.cloud.tencent.com/npm/default-passive-events/-/default-passive-events-2.0.0.tgz#79b1aa67becbaab38b718469b5480fef92eda649"
978 + integrity sha512-eMtt76GpDVngZQ3ocgvRcNCklUMwID1PaNbCNxfpDXuiOXttSh0HzBbda1HU9SIUsDc02vb7g9+3I5tlqe/qMQ==
979 +
970 delayed-stream@~1.0.0: 980 delayed-stream@~1.0.0:
971 version "1.0.0" 981 version "1.0.0"
972 resolved "https://mirrors.tencent.com/npm/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 982 resolved "https://mirrors.tencent.com/npm/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
...@@ -1592,6 +1602,11 @@ inherits@2: ...@@ -1592,6 +1602,11 @@ inherits@2:
1592 resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" 1602 resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
1593 integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 1603 integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
1594 1604
1605 +inherits@2.0.3:
1606 + version "2.0.3"
1607 + resolved "https://mirrors.cloud.tencent.com/npm/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
1608 + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
1609 +
1595 ini@2.0.0: 1610 ini@2.0.0:
1596 version "2.0.0" 1611 version "2.0.0"
1597 resolved "https://mirrors.tencent.com/npm/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" 1612 resolved "https://mirrors.tencent.com/npm/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5"
...@@ -1837,6 +1852,13 @@ lower-case@^2.0.2: ...@@ -1837,6 +1852,13 @@ lower-case@^2.0.2:
1837 dependencies: 1852 dependencies:
1838 tslib "^2.0.3" 1853 tslib "^2.0.3"
1839 1854
1855 +lru-cache@^5.1.1:
1856 + version "5.1.1"
1857 + resolved "https://mirrors.cloud.tencent.com/npm/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
1858 + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
1859 + dependencies:
1860 + yallist "^3.0.2"
1861 +
1840 lru-cache@^6.0.0: 1862 lru-cache@^6.0.0:
1841 version "6.0.0" 1863 version "6.0.0"
1842 resolved "https://mirrors.tencent.com/npm/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" 1864 resolved "https://mirrors.tencent.com/npm/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
...@@ -2591,7 +2613,7 @@ tough-cookie@~2.5.0: ...@@ -2591,7 +2613,7 @@ tough-cookie@~2.5.0:
2591 psl "^1.1.28" 2613 psl "^1.1.28"
2592 punycode "^2.1.1" 2614 punycode "^2.1.1"
2593 2615
2594 -tslib@^1.13.0, tslib@^1.8.1: 2616 +tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0:
2595 version "1.14.1" 2617 version "1.14.1"
2596 resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" 2618 resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
2597 integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== 2619 integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
...@@ -2701,6 +2723,13 @@ util-deprecate@^1.0.2: ...@@ -2701,6 +2723,13 @@ util-deprecate@^1.0.2:
2701 resolved "https://mirrors.cloud.tencent.com/npm/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 2723 resolved "https://mirrors.cloud.tencent.com/npm/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
2702 integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= 2724 integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
2703 2725
2726 +util@^0.11.1:
2727 + version "0.11.1"
2728 + resolved "https://mirrors.cloud.tencent.com/npm/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61"
2729 + integrity sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==
2730 + dependencies:
2731 + inherits "2.0.3"
2732 +
2704 utrie@^1.0.2: 2733 utrie@^1.0.2:
2705 version "1.0.2" 2734 version "1.0.2"
2706 resolved "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz" 2735 resolved "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz"
...@@ -2886,6 +2915,11 @@ y18n@^5.0.5: ...@@ -2886,6 +2915,11 @@ y18n@^5.0.5:
2886 resolved "https://mirrors.tencent.com/npm/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" 2915 resolved "https://mirrors.tencent.com/npm/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
2887 integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== 2916 integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
2888 2917
2918 +yallist@^3.0.2:
2919 + version "3.1.1"
2920 + resolved "https://mirrors.cloud.tencent.com/npm/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
2921 + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
2922 +
2889 yallist@^4.0.0: 2923 yallist@^4.0.0:
2890 version "4.0.0" 2924 version "4.0.0"
2891 resolved "https://mirrors.tencent.com/npm/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" 2925 resolved "https://mirrors.tencent.com/npm/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
......