初志鑫 4 years ago
parent
commit
2222b3c72e
2 changed files with 15 additions and 265 deletions
  1. 12 263
      README-DCLOUD.md
  2. 3 2
      src/plugins/support.js

File diff suppressed because it is too large
+ 12 - 263
README-DCLOUD.md


+ 3 - 2
src/plugins/support.js

@@ -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>'
   );