Commit 2222b3c7 by 初志鑫

deploy

parent 0ba13aaa
import { MessageBox } from "element-ui"; import { MessageBox } from "element-ui";
import { donation } from "@/config/settings";
import { repository, dependencies } from "../../package.json"; import { repository, dependencies } from "../../package.json";
if (!!window.ActiveXObject || "ActiveXObject" in window) { if (!!window.ActiveXObject || "ActiveXObject" in window) {
MessageBox({ MessageBox({
...@@ -14,9 +15,9 @@ if (!!window.ActiveXObject || "ActiveXObject" in window) { ...@@ -14,9 +15,9 @@ if (!!window.ActiveXObject || "ActiveXObject" in window) {
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
}); });
} }
if (process.env.NODE_ENV !== "development") { if (process.env.NODE_ENV !== "development" && donation) {
document.writeln( document.writeln(
'<script>console.log("vue-admin-beautiful推广信息,如果您不愿意保留可在源码中去除:' + '<script>console.log("vue-admin-beautiful推广信息,如果您不愿意保留可在配置中关闭:' +
repository.url.slice(4) + repository.url.slice(4) +
'");</script>' '");</script>'
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment