Commit 5bf90eea627638517e3ced024289696a6ece8e74
1 parent
16ef1347
fix: refresh error
Showing
3 changed files
with
75 additions
and
13 deletions
package.json
... | ... | @@ -71,8 +71,8 @@ |
71 | 71 | "@types/rollup-plugin-visualizer": "^2.6.0", |
72 | 72 | "@types/sortablejs": "^1.10.6", |
73 | 73 | "@types/yargs": "^16.0.0", |
74 | - "@typescript-eslint/eslint-plugin": "^4.18.0", | |
75 | - "@typescript-eslint/parser": "^4.18.0", | |
74 | + "@typescript-eslint/eslint-plugin": "^4.19.0", | |
75 | + "@typescript-eslint/parser": "^4.19.0", | |
76 | 76 | "@vitejs/plugin-legacy": "^1.3.1", |
77 | 77 | "@vitejs/plugin-vue": "^1.1.5", |
78 | 78 | "@vitejs/plugin-vue-jsx": "^1.1.2", | ... | ... |
src/main.ts
... | ... | @@ -32,9 +32,6 @@ import { isDevMode } from '/@/utils/env'; |
32 | 32 | // Register global components |
33 | 33 | registerGlobComp(app); |
34 | 34 | |
35 | - // Multilingual configuration | |
36 | - await setupI18n(app); | |
37 | - | |
38 | 35 | // Configure routing |
39 | 36 | setupRouter(app); |
40 | 37 | |
... | ... | @@ -48,7 +45,7 @@ import { isDevMode } from '/@/utils/env'; |
48 | 45 | setupErrorHandle(app); |
49 | 46 | |
50 | 47 | // Mount when the route is ready |
51 | - await router.isReady(); | |
48 | + await Promise.all([setupI18n(app), router.isReady()]); | |
52 | 49 | |
53 | 50 | app.mount('#app', true); |
54 | 51 | ... | ... |
yarn.lock
... | ... | @@ -1351,11 +1351,6 @@ |
1351 | 1351 | "@types/yargs" "^15.0.0" |
1352 | 1352 | chalk "^4.0.0" |
1353 | 1353 | |
1354 | -"@ls-lint/ls-lint@^1.9.2": | |
1355 | - version "1.9.2" | |
1356 | - resolved "https://registry.npmjs.org/@ls-lint/ls-lint/-/ls-lint-1.9.2.tgz#689f1f4c06072823a726802ba167340efcefe19c" | |
1357 | - integrity sha512-sugEjWjSSy9OHF6t1ZBLZCAROj52cZthB9dIePmzZzzMwmWwy3qAEMSdJheHeS1FOwDZI7Ipm1H/bWgzJNnSAw== | |
1358 | - | |
1359 | 1354 | "@nodelib/fs.scandir@2.1.4": |
1360 | 1355 | version "2.1.4" |
1361 | 1356 | resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" |
... | ... | @@ -1811,7 +1806,7 @@ |
1811 | 1806 | dependencies: |
1812 | 1807 | "@types/yargs-parser" "*" |
1813 | 1808 | |
1814 | -"@typescript-eslint/eslint-plugin@^4.16.1", "@typescript-eslint/eslint-plugin@^4.18.0": | |
1809 | +"@typescript-eslint/eslint-plugin@^4.16.1": | |
1815 | 1810 | version "4.18.0" |
1816 | 1811 | resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.18.0.tgz#50fbce93211b5b690895d20ebec6fe8db48af1f6" |
1817 | 1812 | integrity sha512-Lzkc/2+7EoH7+NjIWLS2lVuKKqbEmJhtXe3rmfA8cyiKnZm3IfLf51irnBcmow8Q/AptVV0XBZmBJKuUJTe6cQ== |
... | ... | @@ -1825,6 +1820,20 @@ |
1825 | 1820 | semver "^7.3.2" |
1826 | 1821 | tsutils "^3.17.1" |
1827 | 1822 | |
1823 | +"@typescript-eslint/eslint-plugin@^4.19.0": | |
1824 | + version "4.19.0" | |
1825 | + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.19.0.tgz#56f8da9ee118fe9763af34d6a526967234f6a7f0" | |
1826 | + integrity sha512-CRQNQ0mC2Pa7VLwKFbrGVTArfdVDdefS+gTw0oC98vSI98IX5A8EVH4BzJ2FOB0YlCmm8Im36Elad/Jgtvveaw== | |
1827 | + dependencies: | |
1828 | + "@typescript-eslint/experimental-utils" "4.19.0" | |
1829 | + "@typescript-eslint/scope-manager" "4.19.0" | |
1830 | + debug "^4.1.1" | |
1831 | + functional-red-black-tree "^1.0.1" | |
1832 | + lodash "^4.17.15" | |
1833 | + regexpp "^3.0.0" | |
1834 | + semver "^7.3.2" | |
1835 | + tsutils "^3.17.1" | |
1836 | + | |
1828 | 1837 | "@typescript-eslint/experimental-utils@4.18.0", "@typescript-eslint/experimental-utils@^4.0.1": |
1829 | 1838 | version "4.18.0" |
1830 | 1839 | resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.18.0.tgz#ed6c955b940334132b17100d2917449b99a91314" |
... | ... | @@ -1837,7 +1846,19 @@ |
1837 | 1846 | eslint-scope "^5.0.0" |
1838 | 1847 | eslint-utils "^2.0.0" |
1839 | 1848 | |
1840 | -"@typescript-eslint/parser@^4.16.1", "@typescript-eslint/parser@^4.18.0": | |
1849 | +"@typescript-eslint/experimental-utils@4.19.0": | |
1850 | + version "4.19.0" | |
1851 | + resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.19.0.tgz#9ca379919906dc72cb0fcd817d6cb5aa2d2054c6" | |
1852 | + integrity sha512-9/23F1nnyzbHKuoTqFN1iXwN3bvOm/PRIXSBR3qFAYotK/0LveEOHr5JT1WZSzcD6BESl8kPOG3OoDRKO84bHA== | |
1853 | + dependencies: | |
1854 | + "@types/json-schema" "^7.0.3" | |
1855 | + "@typescript-eslint/scope-manager" "4.19.0" | |
1856 | + "@typescript-eslint/types" "4.19.0" | |
1857 | + "@typescript-eslint/typescript-estree" "4.19.0" | |
1858 | + eslint-scope "^5.0.0" | |
1859 | + eslint-utils "^2.0.0" | |
1860 | + | |
1861 | +"@typescript-eslint/parser@^4.16.1": | |
1841 | 1862 | version "4.18.0" |
1842 | 1863 | resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.18.0.tgz#a211edb14a69fc5177054bec04c95b185b4dde21" |
1843 | 1864 | integrity sha512-W3z5S0ZbecwX3PhJEAnq4mnjK5JJXvXUDBYIYGoweCyWyuvAKfGHvzmpUzgB5L4cRBb+cTu9U/ro66dx7dIimA== |
... | ... | @@ -1847,6 +1868,16 @@ |
1847 | 1868 | "@typescript-eslint/typescript-estree" "4.18.0" |
1848 | 1869 | debug "^4.1.1" |
1849 | 1870 | |
1871 | +"@typescript-eslint/parser@^4.19.0": | |
1872 | + version "4.19.0" | |
1873 | + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.19.0.tgz#4ae77513b39f164f1751f21f348d2e6cb2d11128" | |
1874 | + integrity sha512-/uabZjo2ZZhm66rdAu21HA8nQebl3lAIDcybUoOxoI7VbZBYavLIwtOOmykKCJy+Xq6Vw6ugkiwn8Js7D6wieA== | |
1875 | + dependencies: | |
1876 | + "@typescript-eslint/scope-manager" "4.19.0" | |
1877 | + "@typescript-eslint/types" "4.19.0" | |
1878 | + "@typescript-eslint/typescript-estree" "4.19.0" | |
1879 | + debug "^4.1.1" | |
1880 | + | |
1850 | 1881 | "@typescript-eslint/scope-manager@4.18.0": |
1851 | 1882 | version "4.18.0" |
1852 | 1883 | resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.18.0.tgz#d75b55234c35d2ff6ac945758d6d9e53be84a427" |
... | ... | @@ -1855,11 +1886,24 @@ |
1855 | 1886 | "@typescript-eslint/types" "4.18.0" |
1856 | 1887 | "@typescript-eslint/visitor-keys" "4.18.0" |
1857 | 1888 | |
1889 | +"@typescript-eslint/scope-manager@4.19.0": | |
1890 | + version "4.19.0" | |
1891 | + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.19.0.tgz#5e0b49eca4df7684205d957c9856f4e720717a4f" | |
1892 | + integrity sha512-GGy4Ba/hLXwJXygkXqMzduqOMc+Na6LrJTZXJWVhRrSuZeXmu8TAnniQVKgj8uTRKe4igO2ysYzH+Np879G75g== | |
1893 | + dependencies: | |
1894 | + "@typescript-eslint/types" "4.19.0" | |
1895 | + "@typescript-eslint/visitor-keys" "4.19.0" | |
1896 | + | |
1858 | 1897 | "@typescript-eslint/types@4.18.0": |
1859 | 1898 | version "4.18.0" |
1860 | 1899 | resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.18.0.tgz#bebe323f81f2a7e2e320fac9415e60856267584a" |
1861 | 1900 | integrity sha512-/BRociARpj5E+9yQ7cwCF/SNOWwXJ3qhjurMuK2hIFUbr9vTuDeu476Zpu+ptxY2kSxUHDGLLKy+qGq2sOg37A== |
1862 | 1901 | |
1902 | +"@typescript-eslint/types@4.19.0": | |
1903 | + version "4.19.0" | |
1904 | + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.19.0.tgz#5181d5d2afd02e5b8f149ebb37ffc8bd7b07a568" | |
1905 | + integrity sha512-A4iAlexVvd4IBsSTNxdvdepW0D4uR/fwxDrKUa+iEY9UWvGREu2ZyB8ylTENM1SH8F7bVC9ac9+si3LWNxcBuA== | |
1906 | + | |
1863 | 1907 | "@typescript-eslint/typescript-estree@4.18.0", "@typescript-eslint/typescript-estree@^4.8.2": |
1864 | 1908 | version "4.18.0" |
1865 | 1909 | resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.18.0.tgz#756d3e61da8c16ab99185532c44872f4cd5538cb" |
... | ... | @@ -1873,6 +1917,19 @@ |
1873 | 1917 | semver "^7.3.2" |
1874 | 1918 | tsutils "^3.17.1" |
1875 | 1919 | |
1920 | +"@typescript-eslint/typescript-estree@4.19.0": | |
1921 | + version "4.19.0" | |
1922 | + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.19.0.tgz#8a709ffa400284ab72df33376df085e2e2f61147" | |
1923 | + integrity sha512-3xqArJ/A62smaQYRv2ZFyTA+XxGGWmlDYrsfZG68zJeNbeqRScnhf81rUVa6QG4UgzHnXw5VnMT5cg75dQGDkA== | |
1924 | + dependencies: | |
1925 | + "@typescript-eslint/types" "4.19.0" | |
1926 | + "@typescript-eslint/visitor-keys" "4.19.0" | |
1927 | + debug "^4.1.1" | |
1928 | + globby "^11.0.1" | |
1929 | + is-glob "^4.0.1" | |
1930 | + semver "^7.3.2" | |
1931 | + tsutils "^3.17.1" | |
1932 | + | |
1876 | 1933 | "@typescript-eslint/visitor-keys@4.18.0": |
1877 | 1934 | version "4.18.0" |
1878 | 1935 | resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.18.0.tgz#4e6fe2a175ee33418318a029610845a81e2ff7b6" |
... | ... | @@ -1881,6 +1938,14 @@ |
1881 | 1938 | "@typescript-eslint/types" "4.18.0" |
1882 | 1939 | eslint-visitor-keys "^2.0.0" |
1883 | 1940 | |
1941 | +"@typescript-eslint/visitor-keys@4.19.0": | |
1942 | + version "4.19.0" | |
1943 | + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.19.0.tgz#cbea35109cbd9b26e597644556be4546465d8f7f" | |
1944 | + integrity sha512-aGPS6kz//j7XLSlgpzU2SeTqHPsmRYxFztj2vPuMMFJXZudpRSehE3WCV+BaxwZFvfAqMoSd86TEuM0PQ59E/A== | |
1945 | + dependencies: | |
1946 | + "@typescript-eslint/types" "4.19.0" | |
1947 | + eslint-visitor-keys "^2.0.0" | |
1948 | + | |
1884 | 1949 | "@vitejs/plugin-legacy@^1.3.1": |
1885 | 1950 | version "1.3.1" |
1886 | 1951 | resolved "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-1.3.1.tgz#e475213721aa7c5022314c4a6489f961a65e8d4e" | ... | ... |