1234567891011121314151617181920212223242526 |
- import Vue from "vue";
- export const debuggerHelper = (show = true) => {
- const version = "1.7.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) {
- Vue.$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,
- });
- }
- };
|