Parcourir la source

401、404页面使用本地图片,避免不必要外链

Ir0nMax il y a 1 an
Parent
commit
d171be74bb

BIN
Web/src/assets/401.png


BIN
Web/src/assets/404.png


+ 2 - 1
Web/src/views/error/401.vue

@@ -13,7 +13,7 @@
 					</div>
 				</div>
 				<div class="right">
-					<img src="https://i.hd-r.cn/2cf0d2e192660eec23eb9d0655753e7d.png" />
+					<img :src="unauthorizedImage" />
 				</div>
 			</div>
 		</div>
@@ -22,6 +22,7 @@
 
 <script setup lang="ts" name="noPower">
 import { Session } from '/@/utils/storage';
+import unauthorizedImage from '/@/assets/401.png';
 
 const onSetAuth = () => {
 	// https://gitee.com/lyt-top/vue-next-admin/issues/I5C3JS

+ 2 - 1
Web/src/views/error/404.vue

@@ -13,7 +13,7 @@
 					</div>
 				</div>
 				<div class="right">
-					<img src="https://i.hd-r.cn/1a0d90a6c1e8b0184c7299dda713effd.png" />
+					<img :src="notFoundImage" />
 				</div>
 			</div>
 		</div>
@@ -22,6 +22,7 @@
 
 <script setup lang="ts" name="notFound">
 import { useRouter } from 'vue-router';
+import notFoundImage from '/@/assets/404.png';
 
 // 定义变量内容
 const router = useRouter();