fix: 使用本地静态文件替代 CDN,避免浏览器安全策略阻止

This commit is contained in:
lt
2026-04-27 14:13:00 +08:00
parent 73de8702ac
commit 8b5b76f6cb
6 changed files with 45 additions and 9 deletions
+9 -3
View File
@@ -17,13 +17,13 @@
<!-- Vue 3 --> <!-- Vue 3 -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- Element Plus CSS --> <!-- Element Plus CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-plus@2.4.3/dist/index.css">
<!-- Element Plus JS --> <!-- Element Plus JS -->
<script src="https://unpkg.com/element-plus@2.4.3/dist/index.full.min.js"></script>
<style> <style>
@@ -70,6 +70,12 @@
} }
</style> </style>
<!-- 本地静态文件 -->
<script src="./static/vue.global.prod.js?v=20260427"></script>
<link rel="stylesheet" href="./static/element-plus.css?v=20260427">
<script src="./static/element-plus.full.js?v=20260427"></script>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
+9 -3
View File
@@ -76,13 +76,13 @@
<!-- Vue 3 --> <!-- Vue 3 -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- Element Plus CSS --> <!-- Element Plus CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-plus@2.4.3/dist/index.css">
<!-- Element Plus JS --> <!-- Element Plus JS -->
<script src="https://unpkg.com/element-plus@2.4.3/dist/index.full.min.js"></script>
<style> <style>
@@ -129,6 +129,12 @@
} }
</style> </style>
<!-- 本地静态文件 -->
<script src="./static/vue.global.prod.js?v=20260427"></script>
<link rel="stylesheet" href="./static/element-plus.css?v=20260427">
<script src="./static/element-plus.full.js?v=20260427"></script>
</head> </head>
<body> <body>
<div class="login-container"> <div class="login-container">
+6
View File
@@ -101,6 +101,12 @@
} }
</style> </style>
<!-- 本地静态文件 -->
<script src="./static/vue.global.prod.js?v=20260427"></script>
<link rel="stylesheet" href="./static/element-plus.css?v=20260427">
<script src="./static/element-plus.full.js?v=20260427"></script>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
+9 -3
View File
@@ -11,13 +11,13 @@
<!-- Vue 3 --> <!-- Vue 3 -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- Element Plus CSS --> <!-- Element Plus CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-plus@2.4.3/dist/index.css">
<!-- Element Plus JS --> <!-- Element Plus JS -->
<script src="https://unpkg.com/element-plus@2.4.3/dist/index.full.min.js"></script>
<style> <style>
@@ -64,6 +64,12 @@
} }
</style> </style>
<!-- 本地静态文件 -->
<script src="./static/vue.global.prod.js?v=20260427"></script>
<link rel="stylesheet" href="./static/element-plus.css?v=20260427">
<script src="./static/element-plus.full.js?v=20260427"></script>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
+6
View File
@@ -101,6 +101,12 @@
} }
</style> </style>
<!-- 本地静态文件 -->
<script src="./static/vue.global.prod.js?v=20260427"></script>
<link rel="stylesheet" href="./static/element-plus.css?v=20260427">
<script src="./static/element-plus.full.js?v=20260427"></script>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
+6
View File
@@ -101,6 +101,12 @@
} }
</style> </style>
<!-- 本地静态文件 -->
<script src="./static/vue.global.prod.js?v=20260427"></script>
<link rel="stylesheet" href="./static/element-plus.css?v=20260427">
<script src="./static/element-plus.full.js?v=20260427"></script>
</head> </head>
<body> <body>
<div id="app"> <div id="app">