添加vConsole插件

This commit is contained in:
fangxiang 2022-04-15 16:53:00 +08:00
parent 410633e04f
commit a1ae3bb395
4 changed files with 55 additions and 1 deletions

View File

@ -21,6 +21,7 @@
"reconnecting-websocket": "^4.4.0",
"ts-md5": "^1.2.11",
"v-viewer": "^3.0.9",
"vconsole": "^3.14.6",
"vue": "^3.0.0",
"vue-i18n": "^9.1.9",
"vue-router": "^4.0.0",

View File

@ -13,12 +13,22 @@ import EventBus, { EventNamesDefine } from "src/common/EventBus";
import GlobalData from "./common/GlobalData";
import { useStore } from "src/store";
import VConsole from "vconsole";
// vConsole
{
if (window.location.href.indexOf("__showDebug__=_1025_") != -1) {
new VConsole();
}
}
export default defineComponent({
name: "App",
setup() {
const $t = useI18n();
const $q = useStore();
document.title = $t.t("title");
window.onresize = (evt: any) =>

View File

@ -18,12 +18,15 @@
:label="$t('clean screen')"
/>
<q-separator dark vertical inset />
<!-- 全屏暂时没有适配 -->
<q-btn
v-if="false && !$q.fullscreen.isActive"
stretch
stack
flat
icon="img:pad/toolbar/full_screen_icon.png"
:label="$t('full screen')"
@click="fullScreen"
/>
<q-separator dark vertical inset />
<q-btn
@ -100,6 +103,8 @@ import { useQuasar } from "quasar";
import { useI18n } from "vue-i18n";
import { useStore } from "src/store";
import { AppFullscreen } from "quasar";
export default defineComponent({
name: "PadTopToolbarPage",
components: {},
@ -107,7 +112,13 @@ export default defineComponent({
const $store = useStore();
const $q = useQuasar();
const $t = useI18n();
return {};
return {
fullScreen() {
AppFullscreen.request();
console.log("fffffffff");
},
};
},
});
</script>

View File

@ -939,6 +939,13 @@
dependencies:
regenerator-runtime "^0.13.4"
"@babel/runtime@^7.17.2":
version "7.17.9"
resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.17.9.tgz#d19fbf802d01a8cb6cf053a64e472d42c434ba72"
integrity sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==
dependencies:
regenerator-runtime "^0.13.4"
"@babel/template@^7.16.7":
version "7.16.7"
resolved "https://registry.npmmirror.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155"
@ -2629,6 +2636,11 @@ cookie@0.4.2:
resolved "https://registry.npmmirror.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==
copy-text-to-clipboard@^3.0.1:
version "3.0.1"
resolved "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz#8cbf8f90e0a47f12e4a24743736265d157bce69c"
integrity sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q==
copy-webpack-plugin@10.2.4:
version "10.2.4"
resolved "https://registry.npmmirror.com/copy-webpack-plugin/-/copy-webpack-plugin-10.2.4.tgz#6c854be3fdaae22025da34b9112ccf81c63308fe"
@ -2649,6 +2661,11 @@ core-js-compat@^3.20.2, core-js-compat@^3.21.0, core-js-compat@^3.6.5:
browserslist "^4.19.1"
semver "7.0.0"
core-js@^3.11.0:
version "3.22.0"
resolved "https://registry.npmmirror.com/core-js/-/core-js-3.22.0.tgz#b52007870c5e091517352e833b77f0b2d2b259f3"
integrity sha512-8h9jBweRjMiY+ORO7bdWSeWfHhLPO7whobj7Z2Bl0IDo00C228EdGgH7FE4jGumbEjzcFfkfW8bXgdkEDhnwHQ==
core-js@^3.21.0, core-js@^3.6.5:
version "3.21.1"
resolved "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz#f2e0ddc1fc43da6f904706e8e955bc19d06a0d94"
@ -5204,6 +5221,11 @@ multimatch@^5.0.0:
arrify "^2.0.1"
minimatch "^3.0.4"
mutation-observer@^1.0.3:
version "1.0.3"
resolved "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz#42e9222b101bca82e5ba9d5a7acf4a14c0f263d0"
integrity sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==
mute-stream@0.0.8:
version "0.0.8"
resolved "https://registry.npmmirror.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
@ -7308,6 +7330,16 @@ vary@^1, vary@~1.1.2:
resolved "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
vconsole@^3.14.6:
version "3.14.6"
resolved "https://registry.npmmirror.com/vconsole/-/vconsole-3.14.6.tgz#74cbbf9c14e66d26325958cee8a9e8c4086a5115"
integrity sha512-8Ffk2SfNe6EzKqZ0aNnNjpAVBVT7zgJo81lYEJdKySYLVYBeSawdSkWi9fSjDg3WsQhgS1vNPmRqJDTuwdVbnQ==
dependencies:
"@babel/runtime" "^7.17.2"
copy-text-to-clipboard "^3.0.1"
core-js "^3.11.0"
mutation-observer "^1.0.3"
viewerjs@^1.9.0:
version "1.10.4"
resolved "https://registry.npmmirror.com/viewerjs/-/viewerjs-1.10.4.tgz#34ced11cc55a203d570fcfc5cac030b0179e5d53"