12345678910111213141516171819202122232425262728293031323334353637 |
- // import Vue from 'vue'
- import { useToast } from "vue-toastification";
- export const debuggerHelper = (show = true) => {
- const version = "1.8.0--" + process.env.VUE_APP_DEBBUG_FLAG;
- if (show) {
- // log.setColors({
- var css = "background: #28b561; color:#fff;font-size:14px;padding:5px;";
- console.log(
- `%c 👉:当前版本::---> ${version}`,
- css
- );
- }
- if (Number(process.env.VUE_APP_DEBBUG_NOTIFY) === 1) {
- setTimeout(() => {
- const toast = useToast();
- toast.warning(
- `当前开发正在调试${version}中, 请等候!`,
- {
- position: "top-center",
- timeout: 400000,
- closeOnClick: true,
- pauseOnFocusLoss: true,
- pauseOnHover: true,
- draggable: true,
- draggablePercent: 0.6,
- showCloseButtonOnHover: false,
- hideProgressBar: true,
- closeButton: "button",
- icon: true,
- rtl: false,
- }
- );
- }, 500);
- }
- };
|