|
@@ -1,4 +1,5 @@
|
|
|
import { MessageBox } from "element-ui";
|
|
|
+import { donation } from "@/config/settings";
|
|
|
import { repository, dependencies } from "../../package.json";
|
|
|
if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
|
|
MessageBox({
|
|
@@ -14,9 +15,9 @@ if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
});
|
|
|
}
|
|
|
-if (process.env.NODE_ENV !== "development") {
|
|
|
+if (process.env.NODE_ENV !== "development" && donation) {
|
|
|
document.writeln(
|
|
|
- '<script>console.log("vue-admin-beautiful推广信息,如果您不愿意保留可在源码中去除:' +
|
|
|
+ '<script>console.log("vue-admin-beautiful推广信息,如果您不愿意保留可在配置中关闭:' +
|
|
|
repository.url.slice(4) +
|
|
|
'");</script>'
|
|
|
);
|