From 5eaef8b9ac5a5785d44d994551c6ca828dc188dd Mon Sep 17 00:00:00 2001 From: yujunsong Date: Fri, 19 Sep 2025 17:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=9F=9F=E5=90=8D=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LocalServer/app.js | 14 +++++++------- ....521a448f.css => CookiesSettingsA.28401938.css} | 2 +- LocalServer/web/CookiesSettingsA/dist/index.html | 2 +- .../dist/js/CookiesSettingsA.7394d960.js | 2 ++ ...e7b.js.map => CookiesSettingsA.7394d960.js.map} | 2 +- .../dist/js/CookiesSettingsA.d1ccce7b.js | 2 -- ....08eca6f1.css => CookiesSettingsB.1ab4e9b9.css} | 2 +- LocalServer/web/CookiesSettingsB/dist/index.html | 2 +- .../dist/js/CookiesSettingsB.5d08321f.js | 2 -- .../dist/js/CookiesSettingsB.6d446630.js | 2 ++ ...21f.js.map => CookiesSettingsB.6d446630.js.map} | 2 +- ...est.5e2af38c.css => RemoteRequest.41b7cd33.css} | 2 +- LocalServer/web/RemoteRequest/dist/index.html | 2 +- .../dist/js/RemoteRequest.65648f5c.js | 2 ++ ...b00adf.js.map => RemoteRequest.65648f5c.js.map} | 2 +- .../dist/js/RemoteRequest.aab00adf.js | 2 -- LocalVue/src/components/CookiesSettingsA.vue | 6 +++--- LocalVue/src/components/CookiesSettingsB.vue | 6 +++--- LocalVue/src/components/FatalPage.vue | 2 +- LocalVue/src/components/LocalResource.vue | 4 ++-- LocalVue/src/components/RemoteRequest.vue | 6 +++--- entry/src/main/ets/pages/Index.ets | 6 +++--- entry/src/main/ets/views/CookiesSettings.ets | 8 ++++---- entry/src/main/ets/views/RemoteRequest.ets | 8 ++++---- ...talPage.024080ed.css => FatalPage.f11f0cba.css} | 2 +- .../resources/resfile/FatalPage/dist/index.html | 2 +- .../FatalPage/dist/js/FatalPage.3fab66d1.js | 2 -- .../FatalPage/dist/js/FatalPage.e8b55299.js | 2 ++ ...e.3fab66d1.js.map => FatalPage.e8b55299.js.map} | 2 +- ...rce.91b3865b.css => LocalResource.740654e5.css} | 2 +- .../resfile/LocalResource/dist/index.html | 2 +- .../dist/js/LocalResource.47a9621b.js | 2 ++ ...06d62c.js.map => LocalResource.47a9621b.js.map} | 2 +- .../dist/js/LocalResource.6606d62c.js | 2 -- 34 files changed, 55 insertions(+), 55 deletions(-) rename LocalServer/web/CookiesSettingsA/dist/css/{CookiesSettingsA.521a448f.css => CookiesSettingsA.28401938.css} (52%) create mode 100644 LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.7394d960.js rename LocalServer/web/CookiesSettingsA/dist/js/{CookiesSettingsA.d1ccce7b.js.map => CookiesSettingsA.7394d960.js.map} (32%) delete mode 100644 LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.d1ccce7b.js rename LocalServer/web/CookiesSettingsB/dist/css/{CookiesSettingsB.08eca6f1.css => CookiesSettingsB.1ab4e9b9.css} (52%) delete mode 100644 LocalServer/web/CookiesSettingsB/dist/js/CookiesSettingsB.5d08321f.js create mode 100644 LocalServer/web/CookiesSettingsB/dist/js/CookiesSettingsB.6d446630.js rename LocalServer/web/CookiesSettingsB/dist/js/{CookiesSettingsB.5d08321f.js.map => CookiesSettingsB.6d446630.js.map} (31%) rename LocalServer/web/RemoteRequest/dist/css/{RemoteRequest.5e2af38c.css => RemoteRequest.41b7cd33.css} (65%) create mode 100644 LocalServer/web/RemoteRequest/dist/js/RemoteRequest.65648f5c.js rename LocalServer/web/RemoteRequest/dist/js/{RemoteRequest.aab00adf.js.map => RemoteRequest.65648f5c.js.map} (32%) delete mode 100644 LocalServer/web/RemoteRequest/dist/js/RemoteRequest.aab00adf.js rename entry/src/main/resources/resfile/FatalPage/dist/css/{FatalPage.024080ed.css => FatalPage.f11f0cba.css} (57%) delete mode 100644 entry/src/main/resources/resfile/FatalPage/dist/js/FatalPage.3fab66d1.js create mode 100644 entry/src/main/resources/resfile/FatalPage/dist/js/FatalPage.e8b55299.js rename entry/src/main/resources/resfile/FatalPage/dist/js/{FatalPage.3fab66d1.js.map => FatalPage.e8b55299.js.map} (89%) rename entry/src/main/resources/resfile/LocalResource/dist/css/{LocalResource.91b3865b.css => LocalResource.740654e5.css} (65%) create mode 100644 entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.47a9621b.js rename entry/src/main/resources/resfile/LocalResource/dist/js/{LocalResource.6606d62c.js.map => LocalResource.47a9621b.js.map} (33%) delete mode 100644 entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.6606d62c.js diff --git a/LocalServer/app.js b/LocalServer/app.js index ca1f07d..4fbb230 100644 --- a/LocalServer/app.js +++ b/LocalServer/app.js @@ -66,7 +66,7 @@ const appB = express(); // [Start CORS_configuration] appB.use(cors({ - origin: 'http://www.a.com:8080', + origin: 'http://www.a.harmonyos:8080', methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization'], credentials: true @@ -93,16 +93,16 @@ appC.get('/api/data', (req, res) => { }); }); -app.use(vhost('www.a.com', appA)); -app.use(vhost('www.b.com', appB)); -app.use(vhost('www.c.com', appC)); +app.use(vhost('www.a.harmonyos', appA)); +app.use(vhost('www.b.harmonyos', appB)); +app.use(vhost('www.c.harmonyos', appC)); // Start the server and listen on port 8080. const PORT = 8080; app.listen(PORT, () => { console.log(`服务器运行在端口 ${PORT}`); console.log('访问地址:'); - console.log('http://www.a.com:8080'); - console.log('http://www.b.com:8080'); - console.log('http://www.c.com:8080'); + console.log('http://www.a.harmonyos:8080'); + console.log('http://www.b.harmonyos:8080'); + console.log('http://www.c.harmonyos:8080'); }); diff --git a/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.521a448f.css b/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.28401938.css similarity index 52% rename from LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.521a448f.css rename to LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.28401938.css index 15e58ef..64ca0da 100644 --- a/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.521a448f.css +++ b/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.28401938.css @@ -1 +1 @@ -.container[data-v-5ab0bdb2]{padding:16px 16px 32px;max-width:750px;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-5ab0bdb2]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-5ab0bdb2]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-5ab0bdb2]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-5ab0bdb2]{border:1px solid #42b983}.error[data-v-5ab0bdb2]{border:1px solid #faa;color:#f44}.btn[data-v-5ab0bdb2]{display:inline-block;width:100%;height:40px;border-radius:20px;background-color:#0a59f7;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file +.container[data-v-1fdc8d89]{padding:16px 16px 32px;max-width:750px;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-1fdc8d89]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-1fdc8d89]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-1fdc8d89]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-1fdc8d89]{border:1px solid #42b983}.error[data-v-1fdc8d89]{border:1px solid #faa;color:#f44}.btn[data-v-1fdc8d89]{display:inline-block;width:100%;height:40px;border-radius:20px;background-color:#0a59f7;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file diff --git a/LocalServer/web/CookiesSettingsA/dist/index.html b/LocalServer/web/CookiesSettingsA/dist/index.html index 58cf8d2..83fe5a4 100644 --- a/LocalServer/web/CookiesSettingsA/dist/index.html +++ b/LocalServer/web/CookiesSettingsA/dist/index.html @@ -1 +1 @@ -Cookies Settings A
\ No newline at end of file +Cookies Settings A
\ No newline at end of file diff --git a/LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.7394d960.js b/LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.7394d960.js new file mode 100644 index 0000000..07655b7 --- /dev/null +++ b/LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.7394d960.js @@ -0,0 +1,2 @@ +(function(){"use strict";var t={767:function(t,e,n){var o=n(751),r=n(641),i=n(33);const s={class:"container"},u={class:"section"},c={class:"logArea"};function a(t,e,n,o,a,l){return(0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",u,[e[1]||(e[1]=(0,r.Lk)("div",{class:"content"},[(0,r.Lk)("div",null,"加载a.com域名下H5页面,自动调用setCookies接口,为a.com域名设置cookies,服务器返回信息显示在日志区。"),(0,r.Lk)("div",null,"点击下方按钮,将a.com域名的cookies设置到b.com域名上。"),(0,r.Lk)("div",null,"页面路径:"),(0,r.Lk)("div",null,"http://www.a.harmonyos:8080/CookieSettingsA/dist/index.html"),(0,r.Lk)("div",null,"接口路径:"),(0,r.Lk)("div",null,"http://www.a.harmonyos:8080/api/setCookies")],-1)),(0,r.Lk)("div",c,[e[0]||(e[0]=(0,r.Lk)("div",{class:"logArea_name"},"日志区",-1)),a.result?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,i.C4)(["result",a.success?"success":"error"])},(0,i.v_)(a.result),3)):(0,r.Q3)("",!0)])])])}var l=n(335),f={data(){return{result:null,success:!1}},mounted(){this.setCookies()},methods:{async setCookies(){try{const t=await l.A.post("http://www.a.harmonyos:8080/api/setCookies",{name:"CookieSettingsA",value:1},{withCredentials:!0}),e=JSON.stringify(t.data,null,2);e.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=t.response?.data||"设置cookies失败",this.success=!1}}}},d=n(262);const v=(0,d.A)(f,[["render",a],["__scopeId","data-v-1fdc8d89"]]);var h=v;(0,o.Ef)(h).mount("#app")}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,o,r,i){if(!o){var s=1/0;for(l=0;l=i)&&Object.keys(n.O).every(function(t){return n.O[t](o[c])})?o.splice(c--,1):(u=!1,i0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[o,r,i]}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={656:0};n.O.j=function(e){return 0===t[e]};var e=function(e,o){var r,i,s=o[0],u=o[1],c=o[2],a=0;if(s.some(function(e){return 0!==t[e]})){for(r in u)n.o(u,r)&&(n.m[r]=u[r]);if(c)var l=c(n)}for(e&&e(o);a\r\n
\r\n
\r\n
\r\n
加载a.com域名下H5页面,自动调用setCookies接口,为a.com域名设置cookies,服务器返回信息显示在日志区。
\r\n
点击下方按钮,将a.com域名的cookies设置到b.com域名上。
\r\n
页面路径:
\r\n
http://www.a.com:8080/CookieSettingsA/dist/index.html
\r\n
接口路径:
\r\n
http://www.a.com:8080/api/setCookies
\r\n
\r\n
\r\n
日志区
\r\n
\r\n {{ result }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n","import { render } from \"./CookiesSettingsA.vue?vue&type=template&id=5ab0bdb2&scoped=true\"\nimport script from \"./CookiesSettingsA.vue?vue&type=script&lang=js\"\nexport * from \"./CookiesSettingsA.vue?vue&type=script&lang=js\"\n\nimport \"./CookiesSettingsA.vue?vue&type=style&index=0&id=5ab0bdb2&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5ab0bdb2\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/CookiesSettingsA.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t656: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(872); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","data","mounted","this","setCookies","methods","response","axios","post","name","value","withCredentials","resStr","JSON","stringify","includes","error","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/CookiesSettingsA.7394d960.js","mappings":"2FAgBOA,MAAM,a,GACJA,MAAM,W,GASJA,MAAM,W,0CAVfC,EAAAA,EAAAA,IAiBM,MAjBNC,EAiBM,EAhBJC,EAAAA,EAAAA,IAeM,MAfNC,EAeM,C,aAdJD,EAAAA,EAAAA,IAOM,OAPDH,MAAM,WAAS,EAClBG,EAAAA,EAAAA,IAA2E,WAAtE,qEACLA,EAAAA,EAAAA,IAA8C,WAAzC,wCACLA,EAAAA,EAAAA,IAAgB,WAAX,UACLA,EAAAA,EAAAA,IAAsE,WAAjE,gEACLA,EAAAA,EAAAA,IAAgB,WAAX,UACLA,EAAAA,EAAAA,IAAqD,WAAhD,gD,KAEPA,EAAAA,EAAAA,IAKM,MALNE,EAKM,C,aAJJF,EAAAA,EAAAA,IAAmC,OAA9BH,MAAM,gBAAe,OAAG,IAClBM,EAA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AAEjB,OAAO,GACvD,C,eCDA,IAAIwD,EAAkB,CACrB,IAAK,GAaN3C,EAAoBS,EAAES,EAAI,SAAS0B,GAAW,OAAoC,IAA7BD,EAAgBC,EAAgB,EAGrF,IAAIC,EAAuB,SAASC,EAA4BpE,GAC/D,IAKIuB,EAAU2C,EALVlC,EAAWhC,EAAK,GAChBqE,EAAcrE,EAAK,GACnBsE,EAAUtE,EAAK,GAGIqC,EAAI,EAC3B,GAAGL,EAASuC,KAAK,SAASC,GAAM,OAA+B,IAAxBP,EAAgBO,EAAW,GAAI,CACrE,IAAIjD,KAAY8C,EACZ/C,EAAoB2B,EAAEoB,EAAa9C,KACrCD,EAAoBO,EAAEN,GAAY8C,EAAY9C,IAGhD,GAAG+C,EAAS,IAAIzE,EAASyE,EAAQhD,EAClC,CAEA,IADG8C,GAA4BA,EAA2BpE,GACrDqC,EAAIL,EAASM,OAAQD,IACzB6B,EAAUlC,EAASK,GAChBf,EAAoB2B,EAAEgB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO5C,EAAoBS,EAAElC,EAC9B,EAEI4E,EAAqBC,KAAK,wBAA0BA,KAAK,yBAA2B,GACxFD,EAAmBE,QAAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmBI,KAAOV,EAAqBS,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,IC/CvF,IAAIK,EAAsBxD,EAAoBS,OAAEN,EAAW,CAAC,KAAM,WAAa,OAAOH,EAAoB,IAAM,GAChHwD,EAAsBxD,EAAoBS,EAAE+C,E","sources":["webpack://localvue/./src/components/CookiesSettingsA.vue","webpack://localvue/./src/components/CookiesSettingsA.vue?32db","webpack://localvue/./src/pages/CookiesSettingsA/main.js","webpack://localvue/webpack/bootstrap","webpack://localvue/webpack/runtime/chunk loaded","webpack://localvue/webpack/runtime/define property getters","webpack://localvue/webpack/runtime/global","webpack://localvue/webpack/runtime/hasOwnProperty shorthand","webpack://localvue/webpack/runtime/make namespace object","webpack://localvue/webpack/runtime/jsonp chunk loading","webpack://localvue/webpack/startup"],"sourcesContent":["/*\r\n * Copyright (c) 2025 Huawei Device Co., Ltd.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./CookiesSettingsA.vue?vue&type=template&id=1fdc8d89&scoped=true\"\nimport script from \"./CookiesSettingsA.vue?vue&type=script&lang=js\"\nexport * from \"./CookiesSettingsA.vue?vue&type=script&lang=js\"\n\nimport \"./CookiesSettingsA.vue?vue&type=style&index=0&id=1fdc8d89&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1fdc8d89\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/CookiesSettingsA.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t656: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(767); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","data","mounted","this","setCookies","methods","response","axios","post","name","value","withCredentials","resStr","JSON","stringify","includes","error","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.d1ccce7b.js b/LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.d1ccce7b.js deleted file mode 100644 index edc2923..0000000 --- a/LocalServer/web/CookiesSettingsA/dist/js/CookiesSettingsA.d1ccce7b.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var t={872:function(t,e,n){var o=n(751),i=n(641),r=n(33);const s={class:"container"},c={class:"section"},u={class:"logArea"};function a(t,e,n,o,a,l){return(0,i.uX)(),(0,i.CE)("div",s,[(0,i.Lk)("div",c,[e[1]||(e[1]=(0,i.Lk)("div",{class:"content"},[(0,i.Lk)("div",null,"加载a.com域名下H5页面,自动调用setCookies接口,为a.com域名设置cookies,服务器返回信息显示在日志区。"),(0,i.Lk)("div",null,"点击下方按钮,将a.com域名的cookies设置到b.com域名上。"),(0,i.Lk)("div",null,"页面路径:"),(0,i.Lk)("div",null,"http://www.a.com:8080/CookieSettingsA/dist/index.html"),(0,i.Lk)("div",null,"接口路径:"),(0,i.Lk)("div",null,"http://www.a.com:8080/api/setCookies")],-1)),(0,i.Lk)("div",u,[e[0]||(e[0]=(0,i.Lk)("div",{class:"logArea_name"},"日志区",-1)),a.result?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,r.C4)(["result",a.success?"success":"error"])},(0,r.v_)(a.result),3)):(0,i.Q3)("",!0)])])])}var l=n(335),f={data(){return{result:null,success:!1}},mounted(){this.setCookies()},methods:{async setCookies(){try{const t=await l.A.post("http://www.a.com:8080/api/setCookies",{name:"CookieSettingsA",value:1},{withCredentials:!0}),e=JSON.stringify(t.data,null,2);e.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=t.response?.data||"设置cookies失败",this.success=!1}}}},d=n(262);const v=(0,d.A)(f,[["render",a],["__scopeId","data-v-5ab0bdb2"]]);var p=v;(0,o.Ef)(p).mount("#app")}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.m=t,function(){var t=[];n.O=function(e,o,i,r){if(!o){var s=1/0;for(l=0;l=r)&&Object.keys(n.O).every(function(t){return n.O[t](o[u])})?o.splice(u--,1):(c=!1,r0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[o,i,r]}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={656:0};n.O.j=function(e){return 0===t[e]};var e=function(e,o){var i,r,s=o[0],c=o[1],u=o[2],a=0;if(s.some(function(e){return 0!==t[e]})){for(i in c)n.o(c,i)&&(n.m[i]=c[i]);if(u)var l=u(n)}for(e&&e(o);aCookies Settings B
\ No newline at end of file +Cookies Settings B
\ No newline at end of file diff --git a/LocalServer/web/CookiesSettingsB/dist/js/CookiesSettingsB.5d08321f.js b/LocalServer/web/CookiesSettingsB/dist/js/CookiesSettingsB.5d08321f.js deleted file mode 100644 index b6c3702..0000000 --- a/LocalServer/web/CookiesSettingsB/dist/js/CookiesSettingsB.5d08321f.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var t={92:function(t,e,n){var o=n(751),r=n(641),i=n(33);const s={class:"container"},c={class:"section"},u={class:"logArea"};function l(t,e,n,o,l,a){return(0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",c,[e[1]||(e[1]=(0,r.Lk)("div",{class:"content"},[(0,r.Lk)("div",null,"加载b.com域名下H5页面,自动调用getCookies接口,给服务器传递从a.com域名拿到的cookies,服务器返回信息显示在日志区。"),(0,r.Lk)("div",null,"页面路径:"),(0,r.Lk)("div",null,"http://www.b.com:8080/CookieSettingsB/dist/index.html"),(0,r.Lk)("div",null,"接口路径:"),(0,r.Lk)("div",null,"http://www.b.com:8080/api/getCookies")],-1)),(0,r.Lk)("div",u,[e[0]||(e[0]=(0,r.Lk)("div",{class:"logArea_name"},"日志区",-1)),l.result?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,i.C4)(["result",l.success?"success":"error"])},(0,i.v_)(l.result),3)):(0,r.Q3)("",!0)])])])}var a=n(335),f={data(){return{result:null,success:!1}},mounted(){this.getCookies()},methods:{async getCookies(){try{const t=await a.A.post("http://www.b.com:8080/api/getCookies",{},{withCredentials:!0}),e=JSON.stringify(t.data,null,2);e.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=t.response?.data||"获取cookies失败",this.success=!1}}}},d=n(262);const v=(0,d.A)(f,[["render",l],["__scopeId","data-v-9246dd9a"]]);var p=v;(0,o.Ef)(p).mount("#app")}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,o,r,i){if(!o){var s=1/0;for(a=0;a=i)&&Object.keys(n.O).every(function(t){return n.O[t](o[u])})?o.splice(u--,1):(c=!1,i0&&t[a-1][2]>i;a--)t[a]=t[a-1];t[a]=[o,r,i]}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={859:0};n.O.j=function(e){return 0===t[e]};var e=function(e,o){var r,i,s=o[0],c=o[1],u=o[2],l=0;if(s.some(function(e){return 0!==t[e]})){for(r in c)n.o(c,r)&&(n.m[r]=c[r]);if(u)var a=u(n)}for(e&&e(o);lError")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=t.response?.data||"获取cookies失败",this.success=!1}}}},d=n(262);const v=(0,d.A)(f,[["render",a],["__scopeId","data-v-7ee8bf4a"]]);var h=v;(0,o.Ef)(h).mount("#app")}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,o,r,i){if(!o){var s=1/0;for(l=0;l=i)&&Object.keys(n.O).every(function(t){return n.O[t](o[c])})?o.splice(c--,1):(u=!1,i0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[o,r,i]}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={859:0};n.O.j=function(e){return 0===t[e]};var e=function(e,o){var r,i,s=o[0],u=o[1],c=o[2],a=0;if(s.some(function(e){return 0!==t[e]})){for(r in u)n.o(u,r)&&(n.m[r]=u[r]);if(c)var l=c(n)}for(e&&e(o);a\r\n
\r\n
\r\n
\r\n
加载b.com域名下H5页面,自动调用getCookies接口,给服务器传递从a.com域名拿到的cookies,服务器返回信息显示在日志区。
\r\n
页面路径:
\r\n
http://www.b.com:8080/CookieSettingsB/dist/index.html
\r\n
接口路径:
\r\n
http://www.b.com:8080/api/getCookies
\r\n
\r\n
\r\n
日志区
\r\n
\r\n {{ result }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n","import { render } from \"./CookiesSettingsB.vue?vue&type=template&id=9246dd9a&scoped=true\"\nimport script from \"./CookiesSettingsB.vue?vue&type=script&lang=js\"\nexport * from \"./CookiesSettingsB.vue?vue&type=script&lang=js\"\n\nimport \"./CookiesSettingsB.vue?vue&type=style&index=0&id=9246dd9a&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9246dd9a\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/CookiesSettingsB.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t859: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(92); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","data","mounted","this","getCookies","methods","response","axios","post","withCredentials","resStr","JSON","stringify","includes","error","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"source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BC,KAAK,wBAA0BA,KAAK,yBAA2B,GACxFD,EAAmBE,QAAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmBI,KAAOV,EAAqBS,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,IC/CvF,IAAIK,EAAsBzD,EAAoBS,OAAEN,EAAW,CAAC,KAAM,WAAa,OAAOH,EAAoB,IAAM,GAChHyD,EAAsBzD,EAAoBS,EAAEgD,E","sources":["webpack://localvue/./src/components/CookiesSettingsB.vue","webpack://localvue/./src/components/CookiesSettingsB.vue?4edc","webpack://localvue/./src/pages/CookiesSettingsB/main.js","webpack://localvue/webpack/bootstrap","webpack://localvue/webpack/runtime/chunk loaded","webpack://localvue/webpack/runtime/define property getters","webpack://localvue/webpack/runtime/global","webpack://localvue/webpack/runtime/hasOwnProperty shorthand","webpack://localvue/webpack/runtime/make namespace object","webpack://localvue/webpack/runtime/jsonp chunk loading","webpack://localvue/webpack/startup"],"sourcesContent":["/*\r\n * Copyright (c) 2025 Huawei Device Co., Ltd.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./CookiesSettingsB.vue?vue&type=template&id=7ee8bf4a&scoped=true\"\nimport script from \"./CookiesSettingsB.vue?vue&type=script&lang=js\"\nexport * from \"./CookiesSettingsB.vue?vue&type=script&lang=js\"\n\nimport \"./CookiesSettingsB.vue?vue&type=style&index=0&id=7ee8bf4a&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7ee8bf4a\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/CookiesSettingsB.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t859: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(732); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","data","mounted","this","getCookies","methods","response","axios","post","withCredentials","resStr","JSON","stringify","includes","error","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/LocalServer/web/RemoteRequest/dist/css/RemoteRequest.5e2af38c.css b/LocalServer/web/RemoteRequest/dist/css/RemoteRequest.41b7cd33.css similarity index 65% rename from LocalServer/web/RemoteRequest/dist/css/RemoteRequest.5e2af38c.css rename to LocalServer/web/RemoteRequest/dist/css/RemoteRequest.41b7cd33.css index f779604..db3392d 100644 --- a/LocalServer/web/RemoteRequest/dist/css/RemoteRequest.5e2af38c.css +++ b/LocalServer/web/RemoteRequest/dist/css/RemoteRequest.41b7cd33.css @@ -1 +1 @@ -.container[data-v-357a05ee]{padding:16px 16px 32px;max-width:750px;height:calc(100vh - 56px);display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-357a05ee]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-357a05ee]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-357a05ee]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-357a05ee]{border:1px solid #42b983}.error[data-v-357a05ee]{border:1px solid #f44;color:#f44}.btn[data-v-357a05ee]{width:100%;height:40px;border-radius:20px;background-color:#0a59f7;display:inline-block;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file +.container[data-v-04c49169]{padding:16px 16px 32px;max-width:750px;height:calc(100vh - 56px);display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-04c49169]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-04c49169]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-04c49169]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-04c49169]{border:1px solid #42b983}.error[data-v-04c49169]{border:1px solid #f44;color:#f44}.btn[data-v-04c49169]{width:100%;height:40px;border-radius:20px;background-color:#0a59f7;display:inline-block;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file diff --git a/LocalServer/web/RemoteRequest/dist/index.html b/LocalServer/web/RemoteRequest/dist/index.html index 681408f..64a72d9 100644 --- a/LocalServer/web/RemoteRequest/dist/index.html +++ b/LocalServer/web/RemoteRequest/dist/index.html @@ -1 +1 @@ -Remote Request
\ No newline at end of file +Remote Request
\ No newline at end of file diff --git a/LocalServer/web/RemoteRequest/dist/js/RemoteRequest.65648f5c.js b/LocalServer/web/RemoteRequest/dist/js/RemoteRequest.65648f5c.js new file mode 100644 index 0000000..9c0a565 --- /dev/null +++ b/LocalServer/web/RemoteRequest/dist/js/RemoteRequest.65648f5c.js @@ -0,0 +1,2 @@ +(function(){"use strict";var t={683:function(t,n,e){var r=e(751),o=e(641),i=e(33);const s={class:"container"},c={class:"section"},a={class:"logArea"},u={class:"footer"};function l(t,n,e,r,l,f){return(0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",c,[n[2]||(n[2]=(0,o.Lk)("div",{class:"content"},[(0,o.Lk)("div",null,"加载a.com域名下H5页面,点击下方按钮调用c.com域名下的API,服务器返回信息显示在日志区。"),(0,o.Lk)("div",null,"页面路径:"),(0,o.Lk)("div",null,"http://www.a.harmonyos:8080/RemoteRequest/dist/index.html"),(0,o.Lk)("div",null,"接口路径:"),(0,o.Lk)("div",null,"http://www.c.harmonyos:8080/api/data")],-1)),(0,o.Lk)("div",a,[n[1]||(n[1]=(0,o.Lk)("div",{class:"logArea_name"},"日志区",-1)),l.result?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,i.C4)(["result",l.success?"success":"error"])},(0,i.v_)(l.result),3)):(0,o.Q3)("",!0)])]),(0,o.Lk)("div",u,[(0,o.Lk)("div",{class:"btn",onClick:n[0]||(n[0]=(...t)=>f.fetchData&&f.fetchData(...t))},"点击请求")])])}var f=e(335),d={data(){return{result:null,success:!1}},methods:{async fetchData(){try{const t=await f.A.get("http://www.c.harmonyos:8080/api/data",{params:{id:123,name:"测试"}}),n=JSON.stringify(t.data,null,2);n.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=`请求失败: ${t.message}`,this.success=!1}}}},v=e(262);const h=(0,v.A)(d,[["render",l],["__scopeId","data-v-04c49169"]]);var p=h;(0,r.Ef)(p).mount("#app")}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.m=t,function(){var t=[];e.O=function(n,r,o,i){if(!r){var s=1/0;for(l=0;l=i)&&Object.keys(e.O).every(function(t){return e.O[t](r[a])})?r.splice(a--,1):(c=!1,i0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,o,i]}}(),function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}}(),function(){e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={316:0};e.O.j=function(n){return 0===t[n]};var n=function(n,r){var o,i,s=r[0],c=r[1],a=r[2],u=0;if(s.some(function(n){return 0!==t[n]})){for(o in c)e.o(c,o)&&(e.m[o]=c[o]);if(a)var l=a(e)}for(n&&n(r);u\r\n
\r\n
\r\n
\r\n
加载a.com域名下H5页面,点击下方按钮调用c.com域名下的API,服务器返回信息显示在日志区。
\r\n
页面路径:
\r\n
http://www.a.com:8080/RemoteRequest/dist/index.html
\r\n
接口路径:
\r\n
http://www.c.com:8080/api/data
\r\n
\r\n
\r\n
日志区
\r\n
\r\n {{ result }}\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n\r\n\r\n","import { render } from \"./RemoteRequest.vue?vue&type=template&id=357a05ee&scoped=true\"\nimport script from \"./RemoteRequest.vue?vue&type=script&lang=js\"\nexport * from \"./RemoteRequest.vue?vue&type=script&lang=js\"\n\nimport \"./RemoteRequest.vue?vue&type=style&index=0&id=357a05ee&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-357a05ee\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/RemoteRequest.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t316: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(338); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","_hoisted_4","onClick","_cache","args","$options","fetchData","data","methods","response","axios","get","params","id","name","resStr","JSON","stringify","includes","this","error","message","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/RemoteRequest.65648f5c.js","mappings":"2FAgBOA,MAAM,a,GACJA,MAAM,W,GAQJA,MAAM,W,GAORA,MAAM,U,0CAhBbC,EAAAA,EAAAA,IAmBM,MAnBNC,EAmBM,EAlBJC,EAAAA,EAAAA,IAcM,MAdNC,EAcM,C,aAbJD,EAAAA,EAAAA,IAMM,OANDH,MAAM,WAAS,EAClBG,EAAAA,EAAAA,IAA6D,WAAxD,uDACLA,EAAAA,EAAAA,IAAgB,WAAX,UACLA,EAAAA,EAAAA,IAAoE,WAA/D,8DACLA,EAAAA,EAAAA,IAAgB,WAAX,UACLA,EAAAA,EAAAA,IAA+C,WAA1C,0C,KAEPA,EAAAA,EAAAA,IAKM,MALNE,EAKM,C,aAJJF,EAAAA,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ue/./src/components/RemoteRequest.vue?0131","webpack://localvue/./src/pages/RemoteRequest/main.js","webpack://localvue/webpack/bootstrap","webpack://localvue/webpack/runtime/chunk loaded","webpack://localvue/webpack/runtime/define property getters","webpack://localvue/webpack/runtime/global","webpack://localvue/webpack/runtime/hasOwnProperty shorthand","webpack://localvue/webpack/runtime/make namespace object","webpack://localvue/webpack/runtime/jsonp chunk loading","webpack://localvue/webpack/startup"],"sourcesContent":["/*\r\n * Copyright (c) 2025 Huawei Device Co., Ltd.\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./RemoteRequest.vue?vue&type=template&id=04c49169&scoped=true\"\nimport script from \"./RemoteRequest.vue?vue&type=script&lang=js\"\nexport * from \"./RemoteRequest.vue?vue&type=script&lang=js\"\n\nimport \"./RemoteRequest.vue?vue&type=style&index=0&id=04c49169&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-04c49169\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/RemoteRequest.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t316: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(683); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","_hoisted_4","onClick","_cache","args","$options","fetchData","data","methods","response","axios","get","params","id","name","resStr","JSON","stringify","includes","this","error","message","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/LocalServer/web/RemoteRequest/dist/js/RemoteRequest.aab00adf.js b/LocalServer/web/RemoteRequest/dist/js/RemoteRequest.aab00adf.js deleted file mode 100644 index 459e0f5..0000000 --- a/LocalServer/web/RemoteRequest/dist/js/RemoteRequest.aab00adf.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var t={338:function(t,e,n){var r=n(751),o=n(641),i=n(33);const c={class:"container"},s={class:"section"},a={class:"logArea"},u={class:"footer"};function l(t,e,n,r,l,f){return(0,o.uX)(),(0,o.CE)("div",c,[(0,o.Lk)("div",s,[e[2]||(e[2]=(0,o.Lk)("div",{class:"content"},[(0,o.Lk)("div",null,"加载a.com域名下H5页面,点击下方按钮调用c.com域名下的API,服务器返回信息显示在日志区。"),(0,o.Lk)("div",null,"页面路径:"),(0,o.Lk)("div",null,"http://www.a.com:8080/RemoteRequest/dist/index.html"),(0,o.Lk)("div",null,"接口路径:"),(0,o.Lk)("div",null,"http://www.c.com:8080/api/data")],-1)),(0,o.Lk)("div",a,[e[1]||(e[1]=(0,o.Lk)("div",{class:"logArea_name"},"日志区",-1)),l.result?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,i.C4)(["result",l.success?"success":"error"])},(0,i.v_)(l.result),3)):(0,o.Q3)("",!0)])]),(0,o.Lk)("div",u,[(0,o.Lk)("div",{class:"btn",onClick:e[0]||(e[0]=(...t)=>f.fetchData&&f.fetchData(...t))},"点击请求")])])}var f=n(335),d={data(){return{result:null,success:!1}},methods:{async fetchData(){try{const t=await f.A.get("http://www.c.com:8080/api/data",{params:{id:123,name:"测试"}}),e=JSON.stringify(t.data,null,2);e.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=`请求失败: ${t.message}`,this.success=!1}}}},v=n(262);const h=(0,v.A)(d,[["render",l],["__scopeId","data-v-357a05ee"]]);var p=h;(0,r.Ef)(p).mount("#app")}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,r,o,i){if(!r){var c=1/0;for(l=0;l=i)&&Object.keys(n.O).every(function(t){return n.O[t](r[a])})?r.splice(a--,1):(s=!1,i0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,o,i]}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={316:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,i,c=r[0],s=r[1],a=r[2],u=0;if(c.some(function(e){return 0!==t[e]})){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(a)var l=a(n)}for(e&&e(r);u加载a.com域名下H5页面,自动调用setCookies接口,为a.com域名设置cookies,服务器返回信息显示在日志区。
点击下方按钮,将a.com域名的cookies设置到b.com域名上。
页面路径:
-
http://www.a.com:8080/CookieSettingsA/dist/index.html
+
http://www.a.harmonyos:8080/CookieSettingsA/dist/index.html
接口路径:
-
http://www.a.com:8080/api/setCookies
+
http://www.a.harmonyos:8080/api/setCookies
日志区
@@ -50,7 +50,7 @@ export default { methods: { async setCookies() { try { - const response = await axios.post('http://www.a.com:8080/api/setCookies', { + const response = await axios.post('http://www.a.harmonyos:8080/api/setCookies', { name: 'CookieSettingsA', value: 1, }, { diff --git a/LocalVue/src/components/CookiesSettingsB.vue b/LocalVue/src/components/CookiesSettingsB.vue index fc1d792..0c03eae 100644 --- a/LocalVue/src/components/CookiesSettingsB.vue +++ b/LocalVue/src/components/CookiesSettingsB.vue @@ -19,9 +19,9 @@
加载b.com域名下H5页面,自动调用getCookies接口,给服务器传递从a.com域名拿到的cookies,服务器返回信息显示在日志区。
页面路径:
-
http://www.b.com:8080/CookieSettingsB/dist/index.html
+
http://www.b.harmonyos:8080/CookieSettingsB/dist/index.html
接口路径:
-
http://www.b.com:8080/api/getCookies
+
http://www.b.harmonyos:8080/api/getCookies
日志区
@@ -50,7 +50,7 @@ export default { async getCookies() { try { // [Start http_request] - const response = await axios.post('http://www.b.com:8080/api/getCookies', {}, { + const response = await axios.post('http://www.b.harmonyos:8080/api/getCookies', {}, { withCredentials: true }); // [End http_request] diff --git a/LocalVue/src/components/FatalPage.vue b/LocalVue/src/components/FatalPage.vue index 6057598..e2f1740 100644 --- a/LocalVue/src/components/FatalPage.vue +++ b/LocalVue/src/components/FatalPage.vue @@ -21,7 +21,7 @@
请检查服务器是否正常启动,设备端口是否转发。
-
日志区
+
日志区
{{ result }}
diff --git a/LocalVue/src/components/LocalResource.vue b/LocalVue/src/components/LocalResource.vue index 2466742..e817de2 100644 --- a/LocalVue/src/components/LocalResource.vue +++ b/LocalVue/src/components/LocalResource.vue @@ -21,7 +21,7 @@
页面路径:
/data/storage/el1/bundle/entry/resource/resfile/LocalResource/dist/index.html
接口路径:
-
http://www.a.com:8080/api/echo
+
http://www.a.harmonyos:8080/api/echo
日志区
@@ -49,7 +49,7 @@ export default { methods: { async fetchData() { try { - const response = await axios.get('http://www.a.com:8080/api/echo', { + const response = await axios.get('http://www.a.harmonyos:8080/api/echo', { params: { content: '来自本地Vue的消息' } diff --git a/LocalVue/src/components/RemoteRequest.vue b/LocalVue/src/components/RemoteRequest.vue index 87f708d..4d36363 100644 --- a/LocalVue/src/components/RemoteRequest.vue +++ b/LocalVue/src/components/RemoteRequest.vue @@ -19,9 +19,9 @@
加载a.com域名下H5页面,点击下方按钮调用c.com域名下的API,服务器返回信息显示在日志区。
页面路径:
-
http://www.a.com:8080/RemoteRequest/dist/index.html
+
http://www.a.harmonyos:8080/RemoteRequest/dist/index.html
接口路径:
-
http://www.c.com:8080/api/data
+
http://www.c.harmonyos:8080/api/data
日志区
@@ -49,7 +49,7 @@ export default { methods: { async fetchData() { try { - const response = await axios.get('http://www.c.com:8080/api/data', { + const response = await axios.get('http://www.c.harmonyos:8080/api/data', { params: { id: 123, name: '测试' diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 27961b9..1d1db19 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -35,13 +35,13 @@ struct Index { aboutToAppear(): void { try { webview.WebviewController.customizeSchemes([this.scheme]); - connection.addCustomDnsRule('www.a.com', ['127.0.0.1']).catch((error: BusinessError) => { + connection.addCustomDnsRule('www.a.harmonyos', ['127.0.0.1']).catch((error: BusinessError) => { Logger.error('addCustomDnsRule', `ErrorCode: ${error.code}, Message: ${error.message}`) }) - connection.addCustomDnsRule('www.b.com', ['127.0.0.1']).catch((error: BusinessError) => { + connection.addCustomDnsRule('www.b.harmonyos', ['127.0.0.1']).catch((error: BusinessError) => { Logger.error('addCustomDnsRule', `ErrorCode: ${error.code}, Message: ${error.message}`) }) - connection.addCustomDnsRule('www.c.com', ['127.0.0.1']).catch((error: BusinessError) => { + connection.addCustomDnsRule('www.c.harmonyos', ['127.0.0.1']).catch((error: BusinessError) => { Logger.error('addCustomDnsRule', `ErrorCode: ${error.code}, Message: ${error.message}`) }) } catch (error) { diff --git a/entry/src/main/ets/views/CookiesSettings.ets b/entry/src/main/ets/views/CookiesSettings.ets index 8de78e3..cee0a21 100644 --- a/entry/src/main/ets/views/CookiesSettings.ets +++ b/entry/src/main/ets/views/CookiesSettings.ets @@ -30,7 +30,7 @@ export struct CookiesSettings { Column() { Header({ headerTitle: $r('app.string.scene_name3') }) Row() { - Web({ src: 'http://www.a.com:8080/CookiesSettingsA/dist/index.html', controller: this.controller }) + Web({ src: 'http://www.a.harmonyos:8080/CookiesSettingsA/dist/index.html', controller: this.controller }) .onErrorReceive((event) => { PageLoadError.handleErrorReceive(event, this.controller); }) @@ -52,11 +52,11 @@ export struct CookiesSettings { // [Start put_accept_cookie] webview.WebCookieManager.putAcceptCookieEnabled(true); webview.WebCookieManager.putAcceptThirdPartyCookieEnabled(true) - let value = webview.WebCookieManager.fetchCookieSync('http://www.a.com'); - webview.WebCookieManager.configCookieSync('http://www.b.com', + let value = webview.WebCookieManager.fetchCookieSync('http://www.a.harmonyos'); + webview.WebCookieManager.configCookieSync('http://www.b.harmonyos', value + '; PATH=/; Max-Age=900000; HttpOnly; SameSite=Lax'); // [End put_accept_cookie] - this.controller.loadUrl('http://www.b.com:8080/CookiesSettingsB/dist/index.html'); + this.controller.loadUrl('http://www.b.harmonyos:8080/CookiesSettingsB/dist/index.html'); } catch (error) { Logger.error(`ErrorCode: ${(error as BusinessError).code}, Message: ${(error as BusinessError).message}`); } diff --git a/entry/src/main/ets/views/RemoteRequest.ets b/entry/src/main/ets/views/RemoteRequest.ets index 4663bb6..1966849 100644 --- a/entry/src/main/ets/views/RemoteRequest.ets +++ b/entry/src/main/ets/views/RemoteRequest.ets @@ -28,7 +28,7 @@ export struct RemoteRequest { controller: WebviewController = new webview.WebviewController();schemeHandler: webview.WebSchemeHandler = new webview.WebSchemeHandler(); uiContext: UIContext = this.getUIContext(); staticDnsRules: rcp.StaticDnsRules = [ - { host: 'www.c.com', port: 8080, ipAddresses: ['127.0.0.1'] }, + { host: 'www.c.harmonyos', port: 8080, ipAddresses: ['127.0.0.1'] }, ]; // Create a proxy request class httpProxy: HttpProxy = new HttpProxy({ @@ -44,17 +44,17 @@ export struct RemoteRequest { Header({ headerTitle: $r('app.string.scene_name2') }) Row() { // [Start remote_request] - Web({ src: 'http://www.a.com:8080/RemoteRequest/dist/index.html', controller: this.controller }) + Web({ src: 'http://www.a.harmonyos:8080/RemoteRequest/dist/index.html', controller: this.controller }) .onControllerAttached(() => { try { // Using interceptor to intercept requests this.schemeHandler.onRequestStart((request: webview.WebSchemeHandlerRequest, resourceHandler: webview.WebResourceHandler) => { Logger.info('[schemeHandler] onRequestStart'); - if (request.getRequestUrl().includes('www.c.com')) { + if (request.getRequestUrl().includes('www.c.harmonyos')) { // Through proxy request server this.httpProxy.get(request.getRequestUrl(), resourceHandler, { mimeType: 'application/json', - requestOrigin: 'http://www.a.com:8080' + requestOrigin: 'http://www.a.harmonyos:8080' }) return true; } else { diff --git a/entry/src/main/resources/resfile/FatalPage/dist/css/FatalPage.024080ed.css b/entry/src/main/resources/resfile/FatalPage/dist/css/FatalPage.f11f0cba.css similarity index 57% rename from entry/src/main/resources/resfile/FatalPage/dist/css/FatalPage.024080ed.css rename to entry/src/main/resources/resfile/FatalPage/dist/css/FatalPage.f11f0cba.css index 10fe8c9..2eaa31e 100644 --- a/entry/src/main/resources/resfile/FatalPage/dist/css/FatalPage.024080ed.css +++ b/entry/src/main/resources/resfile/FatalPage/dist/css/FatalPage.f11f0cba.css @@ -1 +1 @@ -.container[data-v-7c492b3b]{padding:16px 16px 32px;max-width:750px;height:calc(100vh - 56px);display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-7c492b3b]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-7c492b3b]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-7c492b3b]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace}.error[data-v-7c492b3b]{padding:4px;border:1px solid #f44;color:#f44}.btn[data-v-7c492b3b]{width:100%;height:40px;border-radius:20px;background-color:#0a59f7;display:inline-block;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file +.container[data-v-3b01ecc8]{padding:16px 16px 32px;max-width:750px;height:calc(100vh - 56px);display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-3b01ecc8]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-3b01ecc8]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-3b01ecc8]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace}.error[data-v-3b01ecc8]{padding:4px;border:1px solid #f44;color:#f44}.btn[data-v-3b01ecc8]{width:100%;height:40px;border-radius:20px;background-color:#0a59f7;display:inline-block;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file diff --git a/entry/src/main/resources/resfile/FatalPage/dist/index.html b/entry/src/main/resources/resfile/FatalPage/dist/index.html index 1232c02..c05d205 100644 --- a/entry/src/main/resources/resfile/FatalPage/dist/index.html +++ b/entry/src/main/resources/resfile/FatalPage/dist/index.html @@ -1 +1 @@ -Fatal Page
\ No newline at end of file +Fatal Page
\ No newline at end of file diff --git a/entry/src/main/resources/resfile/FatalPage/dist/js/FatalPage.3fab66d1.js b/entry/src/main/resources/resfile/FatalPage/dist/js/FatalPage.3fab66d1.js deleted file mode 100644 index b6689f3..0000000 --- a/entry/src/main/resources/resfile/FatalPage/dist/js/FatalPage.3fab66d1.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={967:function(e,t,r){var n=r(751),o=r(641),s=r(33);const i={class:"container"},u={class:"section"},a={class:"logArea"},c={key:0,class:"error"};function l(e,t,r,n,l,E){return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",u,[t[1]||(t[1]=(0,o.Lk)("div",{class:"content"},[(0,o.Lk)("div",null,"加载页面出现错误!"),(0,o.Lk)("div",null,"请检查服务器是否正常启动,设备端口是否转发。")],-1)),(0,o.Lk)("div",a,[t[0]||(t[0]=(0,o.Lk)("div",{class:"logArea name"},"日志区",-1)),l.result?((0,o.uX)(),(0,o.CE)("div",c,(0,s.v_)(l.result),1)):(0,o.Q3)("",!0)])])])}var E={data(){return{result:null}},mounted(){this.parseRequest()},methods:{parseRequest(){const e=window.location.search.split("=")[1];switch(e){case"ERR_CONNECTION_REFUSED":this.result="ERR_CONNECTION_REFUSED 连接被拒绝。";break;case"ERR_CONNECTION_FAILED":this.result="ERR_CONNECTION_FAILED 连接失败。";break;case"ERR_NAME_NOT_RESOLVED":this.result="ERR_NAME_NOT_RESOLVED 域名无法解析。";break;case"ERR_INTERNET_DISCONNECTED":this.result="ERR_INTERNET_DISCONNECTED 网络断开连接。";break;case"ERR_ADDRESS_INVALID":this.result="ERR_ADDRESS_INVALID IP地址或端口号无效。";break;case"ERR_FILE_NOT_FOUND":this.result="ERR_FILE_NOT_FOUND 文件未找到,请检查本地资源文件";break;default:this.result="页面加载失败,请检查资源文件或网络"}}}},f=r(262);const R=(0,f.A)(E,[["render",l],["__scopeId","data-v-7c492b3b"]]);var v=R;(0,n.Ef)(v).mount("#app")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,function(){var e=[];r.O=function(t,n,o,s){if(!n){var i=1/0;for(l=0;l=s)&&Object.keys(r.O).every(function(e){return r.O[e](n[a])})?n.splice(a--,1):(u=!1,s0&&e[l-1][2]>s;l--)e[l]=e[l-1];e[l]=[n,o,s]}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={502:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,s,i=n[0],u=n[1],a=n[2],c=0;if(i.some(function(t){return 0!==e[t]})){for(o in u)r.o(u,o)&&(r.m[o]=u[o]);if(a)var l=a(r)}for(t&&t(n);c=s)&&Object.keys(r.O).every(function(e){return r.O[e](n[a])})?n.splice(a--,1):(u=!1,s0&&e[l-1][2]>s;l--)e[l]=e[l-1];e[l]=[n,o,s]}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={502:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,s,i=n[0],u=n[1],a=n[2],c=0;if(i.some(function(t){return 0!==e[t]})){for(o in u)r.o(u,o)&&(r.m[o]=u[o]);if(a)var l=a(r)}for(t&&t(n);c\n
\n
\n
\n
加载页面出现错误!
\n
请检查服务器是否正常启动,设备端口是否转发。
\n
\n
\n
日志区
\n
\n {{ result }}\n
\n
\n
\n
\n\n\n\n\n","import { render } from \"./FatalPage.vue?vue&type=template&id=7c492b3b&scoped=true\"\nimport script from \"./FatalPage.vue?vue&type=script&lang=js\"\nexport * from \"./FatalPage.vue?vue&type=script&lang=js\"\n\nimport \"./FatalPage.vue?vue&type=style&index=0&id=7c492b3b&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7c492b3b\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/FatalPage.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t502: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(967); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_hoisted_4","_toDisplayString","data","mounted","this","parseRequest","methods","errorInfo","window","location","search","split","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/FatalPage.e8b55299.js","mappings":"0FAgBOA,MAAM,a,GACJA,MAAM,W,GAKJA,MAAM,W,SAEUA,MAAM,S,0CAR/BC,EAAAA,EAAAA,IAaM,MAbNC,EAaM,EAZJC,EAAAA,EAAAA,IAWM,MAXNC,EAWM,C,aAVJD,EAAAA,EAAAA,IAGM,OAHDH,MAAM,WAAS,EAClBG,EAAAA,EAAAA,IAAoB,WAAf,cACLA,EAAAA,EAAAA,IAAiC,WAA5B,4B,KAEPA,EAAAA,EAAAA,IAKM,MALNE,EAKM,C,aAJJF,EAAAA,EAAAA,IAAmC,OAA9BH,MAAM,gBAAe,OAAG,IAClBM,EAAAC,S,WAAXN,EAAAA,EAAAA,IAEM,MAFNO,GAEMC,EAAAA,EAAAA,IADDH,EAAAC,QAAM,K,qBAQnB,OACEG,IAAAA,GACE,MAAO,CACLH,OAAQ,KAEZ,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EAAoB2B,EAAEiB,EAAa3C,KACrCD,EAAoBO,EAAEN,GAAY2C,EAAY3C,IAGhD,GAAG4C,EAAS,IAAIhE,EAASgE,EAAQ7C,EAClC,CAEA,IADG2C,GAA4BA,EAA2B3D,GACrD+B,EAAIL,EAASM,OAAQD,IACzB0B,EAAU/B,EAASK,GAChBf,EAAoB2B,EAAEa,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOzC,EAAoBS,EAAE5B,EAC9B,EAEImE,EAAqBC,KAAK,wBAA0BA,KAAK,yBAA2B,GACxFD,EAAmBE,QAAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmBI,KAAOV,EAAqBS,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,IC/CvF,IAAIK,EAAsBrD,EAAoBS,OAAEN,EAAW,CAAC,KAAM,WAAa,OAAOH,EAAoB,GAAK,GAC/GqD,EAAsBrD,EAAoBS,EAAE4C,E","sources":["webpack://localvue/./src/components/FatalPage.vue","webpack://localvue/./src/components/FatalPage.vue?b845","webpack://localvue/./src/pages/FatalPage/main.js","webpack://localvue/webpack/bootstrap","webpack://localvue/webpack/runtime/chunk loaded","webpack://localvue/webpack/runtime/define property getters","webpack://localvue/webpack/runtime/global","webpack://localvue/webpack/runtime/hasOwnProperty shorthand","webpack://localvue/webpack/runtime/jsonp chunk loading","webpack://localvue/webpack/startup"],"sourcesContent":["/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n\n","import { render } from \"./FatalPage.vue?vue&type=template&id=3b01ecc8&scoped=true\"\nimport script from \"./FatalPage.vue?vue&type=script&lang=js\"\nexport * from \"./FatalPage.vue?vue&type=script&lang=js\"\n\nimport \"./FatalPage.vue?vue&type=style&index=0&id=3b01ecc8&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3b01ecc8\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/FatalPage.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t502: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(65); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_hoisted_4","_toDisplayString","data","mounted","this","parseRequest","methods","errorInfo","window","location","search","split","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/entry/src/main/resources/resfile/LocalResource/dist/css/LocalResource.91b3865b.css b/entry/src/main/resources/resfile/LocalResource/dist/css/LocalResource.740654e5.css similarity index 65% rename from entry/src/main/resources/resfile/LocalResource/dist/css/LocalResource.91b3865b.css rename to entry/src/main/resources/resfile/LocalResource/dist/css/LocalResource.740654e5.css index 7d914b1..b4ca4c5 100644 --- a/entry/src/main/resources/resfile/LocalResource/dist/css/LocalResource.91b3865b.css +++ b/entry/src/main/resources/resfile/LocalResource/dist/css/LocalResource.740654e5.css @@ -1 +1 @@ -.container[data-v-db28378c]{padding:16px 16px 32px;max-width:750px;height:calc(100vh - 56px);display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-db28378c]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-db28378c]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-db28378c]{margin-top:15px;padding:15px;border-radius:4px;background-color:#faf9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-db28378c]{border:1px solid #42b983}.error[data-v-db28378c]{border:1px solid #f44;color:#f44}.btn[data-v-db28378c]{width:100%;height:40px;border-radius:20px;background-color:#0a59f7;display:inline-block;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file +.container[data-v-a83dfab0]{padding:16px 16px 32px;max-width:750px;height:calc(100vh - 56px);display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-a83dfab0]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-a83dfab0]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-a83dfab0]{margin-top:15px;padding:15px;border-radius:4px;background-color:#faf9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-a83dfab0]{border:1px solid #42b983}.error[data-v-a83dfab0]{border:1px solid #f44;color:#f44}.btn[data-v-a83dfab0]{width:100%;height:40px;border-radius:20px;background-color:#0a59f7;display:inline-block;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file diff --git a/entry/src/main/resources/resfile/LocalResource/dist/index.html b/entry/src/main/resources/resfile/LocalResource/dist/index.html index 09dc476..0beceb9 100644 --- a/entry/src/main/resources/resfile/LocalResource/dist/index.html +++ b/entry/src/main/resources/resfile/LocalResource/dist/index.html @@ -1 +1 @@ -Local Resource
\ No newline at end of file +Local Resource
\ No newline at end of file diff --git a/entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.47a9621b.js b/entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.47a9621b.js new file mode 100644 index 0000000..6bc8b5a --- /dev/null +++ b/entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.47a9621b.js @@ -0,0 +1,2 @@ +(function(){"use strict";var t={105:function(t,e,n){var r=n(751),o=n(641),s=n(33);const i={class:"container"},c={class:"section"},a={class:"logArea"},u={class:"footer"};function l(t,e,n,r,l,f){return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",c,[e[2]||(e[2]=(0,o.Lk)("div",{class:"content"},[(0,o.Lk)("div",null,"加载本地H5页面,点击下方按钮调用Nodejs服务器API,服务器返回信息显示在日志区。"),(0,o.Lk)("div",null,"页面路径:"),(0,o.Lk)("div",null,"/data/storage/el1/bundle/entry/resource/resfile/LocalResource/dist/index.html"),(0,o.Lk)("div",null,"接口路径:"),(0,o.Lk)("div",null,"http://www.a.harmonyos:8080/api/echo")],-1)),(0,o.Lk)("div",a,[e[1]||(e[1]=(0,o.Lk)("div",{class:"logArea_name"},"日志区",-1)),l.result?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,s.C4)(["result",l.success?"success":"error"])},(0,s.v_)(l.result),3)):(0,o.Q3)("",!0)])]),(0,o.Lk)("div",u,[(0,o.Lk)("div",{class:"btn",onClick:e[0]||(e[0]=(...t)=>f.fetchData&&f.fetchData(...t))},"点击请求")])])}var f=n(335),d={data(){return{result:null,success:!1}},methods:{async fetchData(){try{const t=await f.A.get("http://www.a.harmonyos:8080/api/echo",{params:{content:"来自本地Vue的消息"}}),e=JSON.stringify(t.data,null,2);e.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=`请求失败: ${t.message}`,this.success=!1}}}},v=n(262);const h=(0,v.A)(d,[["render",l],["__scopeId","data-v-a83dfab0"]]);var p=h;(0,r.Ef)(p).mount("#app")}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.m=t,function(){var t=[];n.O=function(e,r,o,s){if(!r){var i=1/0;for(l=0;l=s)&&Object.keys(n.O).every(function(t){return n.O[t](r[a])})?r.splice(a--,1):(c=!1,s0&&t[l-1][2]>s;l--)t[l]=t[l-1];t[l]=[r,o,s]}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={36:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,s,i=r[0],c=r[1],a=r[2],u=0;if(i.some(function(e){return 0!==t[e]})){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(a)var l=a(n)}for(e&&e(r);u\n
\n
\n
\n
加载本地H5页面,点击下方按钮调用Nodejs服务器API,服务器返回信息显示在日志区。
\n
页面路径:
\n
/data/storage/el1/bundle/entry/resource/resfile/LocalResource/dist/index.html
\n
接口路径:
\n
http://www.a.com:8080/api/echo
\n
\n
\n
日志区
\n
\n {{ result }}\n
\n
\n
\n \n
\n\n\n\n\n","import { render } from \"./LocalResource.vue?vue&type=template&id=db28378c&scoped=true\"\nimport script from \"./LocalResource.vue?vue&type=script&lang=js\"\nexport * from \"./LocalResource.vue?vue&type=script&lang=js\"\n\nimport \"./LocalResource.vue?vue&type=style&index=0&id=db28378c&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-db28378c\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/LocalResource.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t36: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(219); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","_hoisted_4","onClick","_cache","args","$options","fetchData","data","methods","response","axios","get","params","content","resStr","JSON","stringify","includes","this","error","message","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/LocalResource.47a9621b.js","mappings":"2FAgBOA,MAAM,a,GACJA,MAAM,W,GAQJA,MAAM,W,GAORA,MAAM,U,0CAhBbC,EAAAA,EAAAA,IAmBM,MAnBNC,EAmBM,EAlBJC,EAAAA,EAAAA,IAcM,MAdNC,EAcM,C,aAbJD,EAAAA,EAAAA,IAMM,OANDH,MAAM,WAAS,EAClBG,EAAAA,EAAAA,IAAuD,WAAlD,iDACLA,EAAAA,EAAAA,IAAgB,WAAX,UACLA,EAAAA,EAAAA,IAAwF,WAAnF,kFACLA,EAAAA,EAAAA,IAAgB,WAAX,UACLA,EAAAA,EAAAA,IAA+C,WAA1C,0C,KAEPA,EAAAA,EAAAA,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.vue","webpack://localvue/./src/components/LocalResource.vue?5691","webpack://localvue/./src/pages/LocalResource/main.js","webpack://localvue/webpack/bootstrap","webpack://localvue/webpack/runtime/chunk loaded","webpack://localvue/webpack/runtime/define property getters","webpack://localvue/webpack/runtime/global","webpack://localvue/webpack/runtime/hasOwnProperty shorthand","webpack://localvue/webpack/runtime/make namespace object","webpack://localvue/webpack/runtime/jsonp chunk loading","webpack://localvue/webpack/startup"],"sourcesContent":["/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n\n","import { render } from \"./LocalResource.vue?vue&type=template&id=a83dfab0&scoped=true\"\nimport script from \"./LocalResource.vue?vue&type=script&lang=js\"\nexport * from \"./LocalResource.vue?vue&type=script&lang=js\"\n\nimport \"./LocalResource.vue?vue&type=style&index=0&id=a83dfab0&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a83dfab0\"]])\n\nexport default __exports__","/*\n * Copyright (c) 2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createApp } from 'vue'\nimport App from '../../components/LocalResource.vue'\nimport '../../assets/css/global.css'\n\ncreateApp(App).mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t36: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklocalvue\"] = self[\"webpackChunklocalvue\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(105); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","$data","result","_normalizeClass","success","_hoisted_4","onClick","_cache","args","$options","fetchData","data","methods","response","axios","get","params","content","resStr","JSON","stringify","includes","this","error","message","__exports__","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.6606d62c.js b/entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.6606d62c.js deleted file mode 100644 index ac640e4..0000000 --- a/entry/src/main/resources/resfile/LocalResource/dist/js/LocalResource.6606d62c.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var t={219:function(t,e,n){var r=n(751),o=n(641),c=n(33);const i={class:"container"},s={class:"section"},u={class:"logArea"},a={class:"footer"};function l(t,e,n,r,l,f){return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",s,[e[2]||(e[2]=(0,o.Lk)("div",{class:"content"},[(0,o.Lk)("div",null,"加载本地H5页面,点击下方按钮调用Nodejs服务器API,服务器返回信息显示在日志区。"),(0,o.Lk)("div",null,"页面路径:"),(0,o.Lk)("div",null,"/data/storage/el1/bundle/entry/resource/resfile/LocalResource/dist/index.html"),(0,o.Lk)("div",null,"接口路径:"),(0,o.Lk)("div",null,"http://www.a.com:8080/api/echo")],-1)),(0,o.Lk)("div",u,[e[1]||(e[1]=(0,o.Lk)("div",{class:"logArea_name"},"日志区",-1)),l.result?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,c.C4)(["result",l.success?"success":"error"])},(0,c.v_)(l.result),3)):(0,o.Q3)("",!0)])]),(0,o.Lk)("div",a,[(0,o.Lk)("div",{class:"btn",onClick:e[0]||(e[0]=(...t)=>f.fetchData&&f.fetchData(...t))},"点击请求")])])}var f=n(335),d={data(){return{result:null,success:!1}},methods:{async fetchData(){try{const t=await f.A.get("http://www.a.com:8080/api/echo",{params:{content:"来自本地Vue的消息"}}),e=JSON.stringify(t.data,null,2);e.includes("Error")?this.success=!1:this.success=!0,this.result=t.data}catch(t){this.result=`请求失败: ${t.message}`,this.success=!1}}}},v=n(262);const h=(0,v.A)(d,[["render",l],["__scopeId","data-v-db28378c"]]);var p=h;(0,r.Ef)(p).mount("#app")}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var c=e[r]={exports:{}};return t[r](c,c.exports,n),c.exports}n.m=t,function(){var t=[];n.O=function(e,r,o,c){if(!r){var i=1/0;for(l=0;l=c)&&Object.keys(n.O).every(function(t){return n.O[t](r[u])})?r.splice(u--,1):(s=!1,c0&&t[l-1][2]>c;l--)t[l]=t[l-1];t[l]=[r,o,c]}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){var t={36:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,c,i=r[0],s=r[1],u=r[2],a=0;if(i.some(function(e){return 0!==t[e]})){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(u)var l=u(n)}for(e&&e(r);a