2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const n=this.constructor;return this.then((r=>n.resolve(e()).then((()=>r))),(r=>n.resolve(e()).then((()=>{throw r}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";__definePage("uni_modules/yykj-tv/pages/home/home",((e,n)=>{const r=e.__vccOpts||e;for(const[t,o]of n)r[t]=o;return r})({data:()=>({url:""}),onLoad(e){const n="http://localhost:8080",r=(new Date).getTime();this.url=`${n}?timestamp=${r}`,uni.onNetworkStatusChange((e=>{e.isConnected&&(this.url=`${n}?timestamp=${r}`)}))},onUnload(){uni.offNetworkStatusChange()}},[["render",function(n,r,t,o,a,i){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("web-view",{src:a.url},null,8,["src"])])}]]));const n={onLaunch:function(){plus.screen.lockOrientation("landscape-primary"),plus.navigator.setFullscreen(!0)},onHide:function(){!function(e,n,...r){uni.__log__?uni.__log__(e,n,...r):console[e].apply(console,[...r,n])}("log","at App.vue:10","App Hide")},onUnload(){plus.screen.lockOrientation("landscape-primary")}};const{app:r,Vuex:t,Pinia:o}={app:e.createVueApp(n)};uni.Vuex=t,uni.Pinia=o,r.provide("__globalStyles",__uniConfig.styles),r._component.mpType="app",r._component.render=()=>{},r.mount("#app")}(Vue);
|