mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
import{d as defineComponent,i as inject,r as reactive,C as CompositionApi,A as App}from"./resetcss.494d822a.js";import{n as normalizeComponent,g as getUrlParam}from"./vueComponentNormalizer.e7d45796.js";import{e as entry}from"./components.js";const getLocalConfig=()=>{const configStr=localStorage.getItem("magicUiConfig");if(!configStr)return[];try{return[eval(`(${configStr})`)]}catch(t){return[]}};var axios$2={exports:{}},bind$2=function t(e,r){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(r,n)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(t){return Array.isArray(t)}function isUndefined(t){return typeof t=="undefined"}function isBuffer(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function isArrayBuffer(t){return toString.call(t)==="[object ArrayBuffer]"}function isFormData(t){return toString.call(t)==="[object FormData]"}function isArrayBufferView(t){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&isArrayBuffer(t.buffer),e}function isString(t){return typeof t=="string"}function isNumber(t){return typeof t=="number"}function isObject(t){return t!==null&&typeof t=="object"}function isPlainObject(t){if(toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function isDate(t){return toString.call(t)==="[object Date]"}function isFile(t){return toString.call(t)==="[object File]"}function isBlob(t){return toString.call(t)==="[object Blob]"}function isFunction(t){return toString.call(t)==="[object Function]"}function isStream(t){return isObject(t)&&isFunction(t.pipe)}function isURLSearchParams(t){return toString.call(t)==="[object URLSearchParams]"}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach(t,e){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),isArray(t))for(var r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}function merge(){var t={};function e(n,a){isPlainObject(t[a])&&isPlainObject(n)?t[a]=merge(t[a],n):isPlainObject(n)?t[a]=merge({},n):isArray(n)?t[a]=n.slice():t[a]=n}for(var r=0,s=arguments.length;r<s;r++)forEach(arguments[r],e);return t}function extend(t,e,r){return forEach(e,function(n,a){r&&typeof n=="function"?t[a]=bind$1(n,r):t[a]=n}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var utils$e={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim,stripBOM},utils$d=utils$e;function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$2=function t(e,r,s){if(!r)return e;var n;if(s)n=s(r);else if(utils$d.isURLSearchParams(r))n=r.toString();else{var a=[];utils$d.forEach(r,function(l,d){l===null||typeof l=="undefined"||(utils$d.isArray(l)?d=d+"[]":l=[l],utils$d.forEach(l,function(c){utils$d.isDate(c)?c=c.toISOString():utils$d.isObject(c)&&(c=JSON.stringify(c)),a.push(encode(d)+"="+encode(c))}))}),n=a.join("&")}if(n){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e},utils$c=utils$e;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function t(e,r,s){return this.handlers.push({fulfilled:e,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function t(e){this.handlers[e]&&(this.handlers[e]=null)};InterceptorManager$1.prototype.forEach=function t(e){utils$c.forEach(this.handlers,function(s){s!==null&&e(s)})};var InterceptorManager_1=InterceptorManager$1,utils$b=utils$e,normalizeHeaderName$1=function t(e,r){utils$b.forEach(e,function(n,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(e[r]=n,delete e[a])})},enhanceError$2=function t(e,r,s,n,a){return e.config=r,s&&(e.code=s),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},enhanceError$1=enhanceError$2,createError$2=function t(e,r,s,n,a){var o=new Error(e);return enhanceError$1(o,r,s,n,a)},createError$1=createError$2,settle$1=function t(e,r,s){var n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):r(createError$1("Request failed with status code "+s.status,s.config,null,s.request,s))},utils$a=utils$e,cookies$1=utils$a.isStandardBrowserEnv()?function t(){return{write:function(r,s,n,a,o,u){var l=[];l.push(r+"="+encodeURIComponent(s)),utils$a.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),utils$a.isString(a)&&l.push("path="+a),utils$a.isString(o)&&l.push("domain="+o),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){var s=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function t(){return{write:function(){},read:function(){return null},remove:function(){}}}(),isAbsoluteURL$1=function t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},combineURLs$1=function t(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function t(e,r){return e&&!isAbsoluteURL(r)?combineURLs(e,r):r},utils$9=utils$e,ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],parseHeaders$1=function t(e){var r={},s,n,a;return e&&utils$9.forEach(e.split(`
|
|
`),function(u){if(a=u.indexOf(":"),s=utils$9.trim(u.substr(0,a)).toLowerCase(),n=utils$9.trim(u.substr(a+1)),s){if(r[s]&&ignoreDuplicateOf.indexOf(s)>=0)return;s==="set-cookie"?r[s]=(r[s]?r[s]:[]).concat([n]):r[s]=r[s]?r[s]+", "+n:n}}),r},utils$8=utils$e,isURLSameOrigin$1=utils$8.isStandardBrowserEnv()?function t(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),s;function n(a){var o=a;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=n(window.location.href),function(o){var u=utils$8.isString(o)?n(o):o;return u.protocol===s.protocol&&u.host===s.host}}():function t(){return function(){return!0}}();function Cancel$3(t){this.message=t}Cancel$3.prototype.toString=function t(){return"Cancel"+(this.message?": "+this.message:"")};Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$7=utils$e,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,defaults$4=defaults_1,Cancel$2=Cancel_1,xhr=function t(e){return new Promise(function(s,n){var a=e.data,o=e.headers,u=e.responseType,l;function d(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}utils$7.isFormData(a)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+h)}var f=buildFullPath(e.baseURL,e.url);i.open(e.method.toUpperCase(),buildURL$1(f,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function b(){if(!!i){var p="getAllResponseHeaders"in i?parseHeaders(i.getAllResponseHeaders()):null,v=!u||u==="text"||u==="json"?i.responseText:i.response,m={data:v,status:i.status,statusText:i.statusText,headers:p,config:e,request:i};settle(function($){s($),d()},function($){n($),d()},m),i=null}}if("onloadend"in i?i.onloadend=b:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(b)},i.onabort=function(){!i||(n(createError("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(createError("Network Error",e,null,i)),i=null},i.ontimeout=function(){var v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",m=e.transitional||defaults$4.transitional;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),n(createError(v,e,m.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",i)),i=null},utils$7.isStandardBrowserEnv()){var y=(e.withCredentials||isURLSameOrigin(f))&&e.xsrfCookieName?cookies.read(e.xsrfCookieName):void 0;y&&(o[e.xsrfHeaderName]=y)}"setRequestHeader"in i&&utils$7.forEach(o,function(v,m){typeof a=="undefined"&&m.toLowerCase()==="content-type"?delete o[m]:i.setRequestHeader(m,v)}),utils$7.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),u&&u!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(l=function(p){!i||(n(!p||p&&p.type?new Cancel$2("canceled"):p),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l))),a||(a=null),i.send(a)})},utils$6=utils$e,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,e){!utils$6.isUndefined(t)&&utils$6.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function getDefaultAdapter(){var t;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(t=xhr),t}function stringifySafely(t,e,r){if(utils$6.isString(t))try{return(e||JSON.parse)(t),utils$6.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(t)}var defaults$3={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function t(e,r){return normalizeHeaderName(r,"Accept"),normalizeHeaderName(r,"Content-Type"),utils$6.isFormData(e)||utils$6.isArrayBuffer(e)||utils$6.isBuffer(e)||utils$6.isStream(e)||utils$6.isFile(e)||utils$6.isBlob(e)?e:utils$6.isArrayBufferView(e)?e.buffer:utils$6.isURLSearchParams(e)?(setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):utils$6.isObject(e)||r&&r["Content-Type"]==="application/json"?(setContentTypeIfUnset(r,"application/json"),stringifySafely(e)):e}],transformResponse:[function t(e){var r=this.transitional||defaults$3.transitional,s=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,a=!s&&this.responseType==="json";if(a||n&&utils$6.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?enhanceError(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function t(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$6.forEach(["delete","get","head"],function t(e){defaults$3.headers[e]={}});utils$6.forEach(["post","put","patch"],function t(e){defaults$3.headers[e]=utils$6.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$5=utils$e,defaults$2=defaults_1,transformData$1=function t(e,r,s){var n=this||defaults$2;return utils$5.forEach(s,function(o){e=o.call(n,e,r)}),e},isCancel$1=function t(e){return!!(e&&e.__CANCEL__)},utils$4=utils$e,transformData=transformData$1,isCancel=isCancel$1,defaults$1=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function t(e){throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=transformData.call(e,e.data,e.headers,e.transformRequest),e.headers=utils$4.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),utils$4.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var r=e.adapter||defaults$1.adapter;return r(e).then(function(n){return throwIfCancellationRequested(e),n.data=transformData.call(e,n.data,n.headers,e.transformResponse),n},function(n){return isCancel(n)||(throwIfCancellationRequested(e),n&&n.response&&(n.response.data=transformData.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},utils$3=utils$e,mergeConfig$2=function t(e,r){r=r||{};var s={};function n(i,c){return utils$3.isPlainObject(i)&&utils$3.isPlainObject(c)?utils$3.merge(i,c):utils$3.isPlainObject(c)?utils$3.merge({},c):utils$3.isArray(c)?c.slice():c}function a(i){if(utils$3.isUndefined(r[i])){if(!utils$3.isUndefined(e[i]))return n(void 0,e[i])}else return n(e[i],r[i])}function o(i){if(!utils$3.isUndefined(r[i]))return n(void 0,r[i])}function u(i){if(utils$3.isUndefined(r[i])){if(!utils$3.isUndefined(e[i]))return n(void 0,e[i])}else return n(void 0,r[i])}function l(i){if(i in r)return n(e[i],r[i]);if(i in e)return n(void 0,e[i])}var d={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l};return utils$3.forEach(Object.keys(e).concat(Object.keys(r)),function(c){var h=d[c]||a,f=h(c);utils$3.isUndefined(f)&&h!==l||(s[c]=f)}),s},data={version:"0.25.0"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){validators$1[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});var deprecatedWarnings={};validators$1.transitional=function t(e,r,s){function n(a,o){return"[Axios v"+VERSION+"] Transitional option '"+a+"'"+o+(s?". "+s:"")}return function(a,o,u){if(e===!1)throw new Error(n(o," has been removed"+(r?" in "+r:"")));return r&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,u):!0}};function assertOptions(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var s=Object.keys(t),n=s.length;n-- >0;){var a=s[n],o=e[a];if(o){var u=t[a],l=u===void 0||o(u,a,t);if(l!==!0)throw new TypeError("option "+a+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+a)}}var validator$1={assertOptions,validators:validators$1},utils$2=utils$e,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function t(e,r){if(typeof e=="string"?(r=r||{},r.url=e):r=e||{},!r.url)throw new Error("Provided config url is not valid");r=mergeConfig$1(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var s=r.transitional;s!==void 0&&validator.assertOptions(s,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(a=a&&f.synchronous,n.unshift(f.fulfilled,f.rejected))});var o=[];this.interceptors.response.forEach(function(f){o.push(f.fulfilled,f.rejected)});var u;if(!a){var l=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),u=Promise.resolve(r);l.length;)u=u.then(l.shift(),l.shift());return u}for(var d=r;n.length;){var i=n.shift(),c=n.shift();try{d=i(d)}catch(h){c(h);break}}try{u=dispatchRequest(d)}catch(h){return Promise.reject(h)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};Axios$1.prototype.getUri=function t(e){if(!e.url)throw new Error("Provided config url is not valid");return e=mergeConfig$1(this.defaults,e),buildURL(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};utils$2.forEach(["delete","get","head","options"],function t(e){Axios$1.prototype[e]=function(r,s){return this.request(mergeConfig$1(s||{},{method:e,url:r,data:(s||{}).data}))}});utils$2.forEach(["post","put","patch"],function t(e){Axios$1.prototype[e]=function(r,s,n){return this.request(mergeConfig$1(n||{},{method:e,url:r,data:s}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(n){e=n});var r=this;this.promise.then(function(s){if(!!r._listeners){var n,a=r._listeners.length;for(n=0;n<a;n++)r._listeners[n](s);r._listeners=null}}),this.promise.then=function(s){var n,a=new Promise(function(o){r.subscribe(o),n=o}).then(s);return a.cancel=function(){r.unsubscribe(n)},a},t(function(n){r.reason||(r.reason=new Cancel(n),e(r.reason))})}CancelToken.prototype.throwIfRequested=function t(){if(this.reason)throw this.reason};CancelToken.prototype.subscribe=function t(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};CancelToken.prototype.unsubscribe=function t(e){if(!!this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};CancelToken.source=function t(){var e,r=new CancelToken(function(n){e=n});return{token:r,cancel:e}};var CancelToken_1=CancelToken,spread=function t(e){return function(s){return e.apply(null,s)}},utils$1=utils$e,isAxiosError=function t(e){return utils$1.isObject(e)&&e.isAxiosError===!0},utils=utils$e,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults=defaults_1;function createInstance(t){var e=new Axios(t),r=bind(Axios.prototype.request,e);return utils.extend(r,Axios.prototype,e),utils.extend(r,e),r.create=function(n){return createInstance(mergeConfig(t,n))},r}var axios$1=createInstance(defaults);axios$1.Axios=Axios;axios$1.Cancel=Cancel_1;axios$1.CancelToken=CancelToken_1;axios$1.isCancel=isCancel$1;axios$1.VERSION=data.version;axios$1.all=function t(e){return Promise.all(e)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;axios$2.exports=axios$1;axios$2.exports.default=axios$1;var axios=axios$2.exports;const service=axios.create({withCredentials:!0,timeout:7e3}),requestHandler=function(t){return t},responseHandler=function(t){return t};service.interceptors.request.use(requestHandler);service.interceptors.response.use(responseHandler);var request={install(t){t.prototype.request=service}},__vue2_script=defineComponent({name:"App",setup(){var r;const t=inject("app");return{pageConfig:reactive(((r=t==null?void 0:t.page)==null?void 0:r.data)||{})}}}),render=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("magic-ui-page",{attrs:{config:t.pageConfig}})},staticRenderFns=[],App_vue_vue_type_style_index_0_lang="";const __cssModules={};var __component__=normalizeComponent(__vue2_script,render,staticRenderFns,!1,__vue2_injectStyles,null,null,null);function __vue2_injectStyles(t){for(let e in __cssModules)this[e]=__cssModules[e]}var AppComponent=function(){return __component__.exports}();Vue.use(CompositionApi);Vue.use(request);const app=new App({config:((getUrlParam("localPreview")?getLocalConfig():window.magicUiConfig)||[])[0]||{},curPage:getUrlParam("page")});Object.keys(entry.components).forEach(t=>{const e=entry.components[t];Vue.component(e.name,e),app.registerComponent(t,e)});Object.values(entry.plugins).forEach(t=>{Vue.use(t)});Vue.prototype.app=app;const magicApp=new Vue({provide:{app},render:t=>t(AppComponent)});magicApp.$mount("#app");
|