// import Vue from 'vue' import { useToast } from "vue-toastification"; export const debuggerHelper = (show = true) => { const version = "1.4.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); } };