Commit c9a8022f1f31793571f2298f7c417a7ac0be3475

Authored by 杨泽宇
1 parent efac38e2

change cdn api

src/html/failed.html
... ... @@ -12,7 +12,7 @@
12 12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13 13 <link rel="shortcut icon" href="/cms.ico" />
14 14 <link rel="bookmark" href="/cms.ico" />
15   - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css">
  15 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
16 16 <style>
17 17 .status-container {
18 18 margin: 0 auto;
... ... @@ -94,8 +94,8 @@
94 94 </div>
95 95 </div>
96 96 </div>
97   - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>
98   - <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> -->
  97 + <!-- <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  98 + <script src="https://unpkg.com/element-plus"></script> -->
99 99 <!-- <script>
100 100 const Success = {
101 101 data() {
... ...
src/html/index.html
... ... @@ -12,7 +12,7 @@
12 12 <link rel="shortcut icon" href="/cms.ico" />
13 13 <link rel="bookmark" href="/cms.ico" />
14 14 <!-- element 3 plus -->
15   - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css">
  15 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
16 16 <style>
17 17 [v-cloak] {
18 18 display: none;
... ... @@ -26,10 +26,10 @@
26 26 </script>
27 27 <!-- 别人家资源外链 3 -->
28 28 <!-- vue 3 -->
29   - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>
30   - <script src="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12"></script>
31   - <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script>
32   - <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script> -->
  29 + <!-- <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  30 + <script src="https://unpkg.com/element-plus@1.1.0-beta.12"></script>
  31 + <script src="https://unpkg.com/axios@0.17.1/dist/axios.min.js"></script>
  32 + <script src="https://unpkg.com/qiniu-js@2.5.5/dist/qiniu.min.js"></script> -->
33 33  
34 34 <!-- 本公司资源外链备份 2 -->
35 35 <!-- <script type="text/javascript">
... ...
src/html/success.html
... ... @@ -12,7 +12,7 @@
12 12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13 13 <link rel="shortcut icon" href="/cms.ico" />
14 14 <link rel="bookmark" href="/cms.ico" />
15   - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css">
  15 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
16 16 <style>
17 17 .status-container {
18 18 margin: 0 auto;
... ... @@ -100,8 +100,8 @@
100 100 </div>
101 101 </div>
102 102 </div>
103   - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>
104   - <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> -->
  103 + <!-- <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  104 + <script src="https://unpkg.com/element-plus"></script> -->
105 105 <!-- <script>
106 106 const Success = {
107 107 data() {
... ...
src/html/test.html
... ... @@ -10,7 +10,7 @@
10 10 <meta http-equiv="Pragma" CONTENT="no-cache">
11 11 <link rel="shortcut icon" href="/cms.ico" />
12 12 <link rel="bookmark" href="/cms.ico" />
13   - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css">
  13 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
14 14 <style>
15 15 .status-container {
16 16 margin: 0 auto;
... ... @@ -34,8 +34,8 @@
34 34 <div id="success" class="page-container">
35 35 <iframe src="file:///E:/codes/projects/cms_songs/src/html/success.html" id="tengxi" frameborder="1/0" height="1000" name="征集" scrolling="no" width="900"></iframe>
36 36 </div>
37   - <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>
38   - <script src="https://cdn.jsdelivr.net/npm/element-plus"></script>
  37 + <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  38 + <script src="https://unpkg.com/element-plus"></script>
39 39 <script>
40 40 const Success = {
41 41 data() {
... ...
src/html/v2.html
... ... @@ -14,7 +14,7 @@
14 14 <link rel="shortcut icon" href="/cms.ico" />
15 15 <link rel="bookmark" href="/cms.ico" />
16 16 <!-- element 2 -->
17   - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/theme-chalk/index.css">
  17 + <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.5/lib/theme-chalk/index.css">
18 18 <style>
19 19 [v-cloak] {
20 20 display: none;
... ... @@ -27,10 +27,10 @@
27 27 // parent.postMessage('好的', '*')
28 28 </script>
29 29  
30   - <script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.min.js"></script>
31   - <script src="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/index.js"></script>
32   - <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script>
33   - <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script>
  30 + <script src="https://unpkg.com/vue@2.5.2/dist/vue.min.js"></script>
  31 + <script src="https://unpkg.com/element-ui@2.15.5/lib/index.js"></script>
  32 + <script src="https://unpkg.com/axios@0.17.1/dist/axios.min.js"></script>
  33 + <script src="https://unpkg.com/qiniu-js@2.5.5/dist/qiniu.min.js"></script>
34 34  
35 35 <script type="text/javascript">
36 36 if (typeof axios == 'undefined') {
... ... @@ -40,7 +40,7 @@
40 40 document.write(unescape("%3Cscript src='http://gongongku.cnlive.com/vue.min.js' type='text/javascript'%3E%3C/script%3E"));
41 41 }
42 42 if (typeof ELEMENT == 'undefined') {
43   - document.write(unescape("%3Cscript src='https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/index.js' type='text/javascript'%3E%3C/script%3E"));
  43 + document.write(unescape("%3Cscript src='https://unpkg.com/element-ui@2.15.5/lib/index.js' type='text/javascript'%3E%3C/script%3E"));
44 44 }
45 45 if(typeof qiniu == 'undefined') {
46 46 document.write(unescape("%3Cscript src='http://gongongku.cnlive.com/qiniu.min.js' type='text/javascript'%3E%3C/script%3E"));
... ...
webpack.config.js
... ... @@ -12,7 +12,7 @@ module.exports = {
12 12 entry: path.join(__dirname, "src", "/js/audio.js"), //__dirname指的是当前目录,是目录形成绝对路径
13 13 output: {
14 14 //输入的文件名
15   - filename: "version2.js",
  15 + filename: "version21.js",
16 16 // filename: '[name].[hash:7].js',
17 17 publicPath: "/",
18 18 //输入的路径 webpack会自动打包生成
... ... @@ -27,7 +27,7 @@ module.exports = {
27 27 // vue3版本用index.html,vue2版本用v2.html
28 28 template: path.join(__dirname, "src", "html/v2.html"),
29 29 //打包输出的路径
30   - filename: "version2.html",
  30 + filename: "version21.html",
31 31 }),
32 32 new CleanWebpackPlugin(),
33 33 new JavaScriptObfuscator(
... ...