feat:更新

This commit is contained in:
dengtongyu committed 2023-04-20 10:14:50 +08:00
1 parent 7753498cbe
commit 127e75031d
5 files changed
+33 -10

No files matched your search

+3 -1
View File
@@ -12,4 +12,6 @@ export declare const scriptSrcStr: string;
export declare let temp: string; export declare let temp: string;
export declare const injectScriptStr: string; export declare const injectScriptStr: string;
export declare const beianhao: string;
+4 -4
View File
@@ -8,9 +8,6 @@ switch (VITE_APP_ENV) {
case "test": case "test":
proxyTarget = "https://xxxxxx.com"; proxyTarget = "https://xxxxxx.com";
break; break;
case "uat":
proxyTarget = "https://xxxxxx.com";
break;
case "prod": case "prod":
proxyTarget = "https://xxxxxx.com"; proxyTarget = "https://xxxxxx.com";
break; break;
@@ -19,6 +16,8 @@ switch (VITE_APP_ENV) {
break; break;
} }
const beianhao = "鲁ICP备2023011417号-1";
const vconsoleDebug = true; const vconsoleDebug = true;
const scriptSrcStr = "var src = '/midjs/mjs/vconsole/v3.14.6/vconsole.min.js';document.write('<scr' + 'ipt src=\"' + src + '\"></scr' + 'ipt>');document.write('<scr' + 'ipt>new window.VConsole();</scr' + 'ipt>');"; const scriptSrcStr = "var src = '/midjs/mjs/vconsole/v3.14.6/vconsole.min.js';document.write('<scr' + 'ipt src=\"' + src + '\"></scr' + 'ipt>');document.write('<scr' + 'ipt>new window.VConsole();</scr' + 'ipt>');";
let temp = ""; let temp = "";
@@ -32,5 +31,6 @@ const injectScriptStr = `<script>;(function () {${temp}})();</script>`;
export { export {
appName, appName,
proxyTarget, proxyTarget,
injectScriptStr injectScriptStr,
beianhao
}; };
-2
View File
@@ -8,10 +8,8 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"serve:test": "cross-env VITE_APP_ENV=test vite", "serve:test": "cross-env VITE_APP_ENV=test vite",
"serve:uat": "cross-env VITE_APP_ENV=uat vite",
"serve:prod": "cross-env VITE_APP_ENV=prod vite", "serve:prod": "cross-env VITE_APP_ENV=prod vite",
"build:test": "vue-tsc --noEmit && cross-env VITE_APP_ENV=test vite build", "build:test": "vue-tsc --noEmit && cross-env VITE_APP_ENV=test vite build",
"build:uat": "vue-tsc --noEmit && cross-env VITE_APP_ENV=uat vite build",
"build:prod": "vue-tsc --noEmit && cross-env VITE_APP_ENV=prod vite build", "build:prod": "vue-tsc --noEmit && cross-env VITE_APP_ENV=prod vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint --fix config/*.{ts} && eslint --fix src/*.{ts,vue} && eslint --fix src/**/*.{ts,vue}" "lint": "eslint --fix config/*.{ts} && eslint --fix src/*.{ts,vue} && eslint --fix src/**/*.{ts,vue}"
+12 -1
View File
@@ -1,4 +1,5 @@
<script setup lang="ts" name="appH5"> <script setup lang="ts" name="appH5">
import { beianhao } from "../../config/index";
</script> </script>
<template> <template>
@@ -17,7 +18,11 @@
</div> </div>
<div class="h5-main-mask-text"> <div class="h5-main-mask-text">
<p>粤ICP备1000000000号-1 粤公网安备00000000000000</p> <p><a
href="https://beian.miit.gov.cn/#/Integrated/index"
:title="beianhao"
target="_blank"
>{{ beianhao }}</a></p>
</div> </div>
</div> </div>
@@ -68,6 +73,12 @@
line-height: 18px; line-height: 18px;
text-align: center; text-align: center;
margin-top: 36px; margin-top: 36px;
a {
color: #666666;
&:hover {
color: #333;
}
}
} }
} }
} }
+14 -2
View File
@@ -1,5 +1,5 @@
<script setup lang="ts" name="appWeb"> <script setup lang="ts" name="appWeb">
import { beianhao } from "../../config/index";
</script> </script>
<template> <template>
@@ -15,7 +15,13 @@
</div> </div>
<div class="web-footer"> <div class="web-footer">
<div class="web-footer-text"> <div class="web-footer-text">
<p>粤ICP备1000000000号-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;粤公网安备00000000000000</p> <p>
<a
href="https://beian.miit.gov.cn/#/Integrated/index"
:title="beianhao"
target="_blank"
>{{ beianhao }}</a>
</p>
</div> </div>
</div> </div>
</div> </div>
@@ -90,6 +96,12 @@
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8);
line-height: 36px; line-height: 36px;
text-align: center; text-align: center;
a {
color: rgba(255, 255, 255, 0.8);
&:hover {
color: #fff;
}
}
} }
} }