Commit b934cf06 authored by jiangyipeng's avatar jiangyipeng

1

parent c948d909
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><script src=./static/marked.min.js></script><script src=./static/mdjs.min.js></script><title>doc</title><link href=./static/css/app.7efdf569684612a991f0c7e25a0c943e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.2564c4fec04e5b285562.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.12b80a9a7f85b2d49c3c.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><script src=./static/marked.min.js></script><script src=./static/mdjs.min.js></script><title>doc</title><link href=./static/css/app.7efdf569684612a991f0c7e25a0c943e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.2564c4fec04e5b285562.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.fb7e7b8ee8c273b5f7d2.js></script></body></html>
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["webpack:///./src/api/apiList.js","webpack:///./src/api/index.js","webpack:///./src/api/methods.js","webpack:///./src/App.vue?bbff","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///./src/vuex/index.js","webpack:///./src/router/index.js","webpack:///./src/main.js","webpack:///./src/assets/js/ddLogin.js"],"names":["apiList","config","getSsoToken","folderList","articleList","articleDetail","articleEdit","vm","Vue","axios","interceptors","request","use","error","promise_default","a","reject","response","data","err_code","$notify","type","duration","message","err_msg","ddLogin","getCode","api","apiName","url","method","baseURL","qs","stringify","setData","params","token","localStorage","getItem","__webpack_exports__","selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","ssrContext","Vuex","Store","state","user_info","mutations","userInfo","Router","router","routes","path","component","e","then","bind","children","beforeEach","to","from","next","alert","window","location","href","includes","VueQuillEditor","placeholder","modules","toolbar","color","header","search","es_button","divider","loading","field","notify","productionTip","el","components","App","template","callback","console","log","code","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default","setItem","_this","dd","ready","runtime","permission","requestAuthCode","corpId","onSuccess","info","onFail"],"mappings":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iCACXC,YAAY,kCACZC,cAAc,oCACdC,YAAY,2DCHZC,EAAK,IAAIC,IAGbC,IAAMC,aAAaC,QAAQC,IAAI,SAAUX,GAErC,OAAOA,GACR,SAAUY,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAI1BJ,IAAMC,aAAaO,SAASL,IAAI,SAAUK,GAQtC,OAN8B,IAA3BA,EAASC,KAAKC,SACbZ,EAAGa,SAAUC,KAAK,SAASC,SAAU,IAAKC,QAAQN,EAASC,KAAKM,UAChC,QAA3BP,EAASC,KAAKC,UAEnBM,IAAQC,UAELT,EAASC,MACjB,SAAUL,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAGX,IAAAc,EAAA,SACNC,EAAQV,GACT,IAAIW,EAAM7B,EAAQ4B,GAClB,OAAOnB,KACHqB,OAAO,OACPC,QA9BE,kCA+BFF,IAAIA,EACJX,KAAKc,IAAGC,UAAUf,MCrC9B,SAASgB,EAAQhB,GACb,IAAIiB,EAASjB,MAEb,OADAiB,EAAOC,MAAQC,aAAaC,QAAQ,mBAC7BH,EAGII,EAAA,GAEXtC,OAFW,SAEJiB,GACH,OAAOS,EAAS,SAAST,IAG7BhB,YANW,SAMCgB,GACR,OAAOS,EAAS,cAAcT,IAKlCf,WAZW,SAYAe,GACP,OAAOS,EAAS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WAAWC,iBAClBC,OAAQ1F,EAAK0F,OACbC,UAAW,SAAUC,GACjBpC,MAAM0B,IAAeU,IAErBR,EAAMpG,YAAY4G,EAAKX,KAAK,kBAAKH,OAErCe,OAAQ,SAAUD,GACdpC,MAAM0B,IAAeU,IACrBR,EAAMpG,YAAY4G,EAAKX","file":"static/js/app.12b80a9a7f85b2d49c3c.js","sourcesContent":["\r\nexport default {\r\n config:'index.php/login/index/config', //获取钉钉配置信息\r\n getSsoToken:'index.php/login/index/getSsoToken', //通过免签码获取uid\r\n\r\n\r\n folderList:'index.php/api/index/folderList', //访问文件夹列表\r\n articleList:'index.php/api/index/articleList', //访问文件列表\r\n articleDetail:'index.php/api/index/articleDetail', //获取文件详情\r\n articleEdit:'index.php/api/index/articleEdit', //修改文件\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/apiList.js","import axios from 'axios';\r\nimport qs from 'qs';\r\nimport apiList from './apiList';\r\nimport Vue from 'vue';\r\nimport ddLogin from \"../assets/js/ddLogin\";\r\n\r\nlet vm = new Vue();\r\nlet baseUrl = 'http://doc-phone.linanquan.com/';\r\n// 添加请求拦截器\r\naxios.interceptors.request.use(function (config) {\r\n // 在发送请求之前做些什么\r\n return config;\r\n}, function (error) {\r\n // 对请求错误做些什么\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\naxios.interceptors.response.use(function (response) {\r\n // 对响应数据做点什么\r\n if(response.data.err_code !== 0){\r\n vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});\r\n }else if(response.data.err_code === 10003){\r\n //token过期去获取\r\n ddLogin.getCode();\r\n }\r\n return response.data;\r\n}, function (error) {\r\n // 对响应错误做点什么\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default {\r\n post(apiName,data){\r\n let url = apiList[apiName];\r\n return axios({\r\n method:'post',\r\n baseURL:baseUrl,\r\n url:url,\r\n data:qs.stringify(data),\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/index.js","import api from './index';\r\n\r\nfunction setData(data) {\r\n let params = data ? data : {};\r\n params.token = localStorage.getItem('doc_phone_token');\r\n return params;\r\n}\r\n\r\nexport default {\r\n //获取钉钉配置信息\r\n config(data){\r\n return api.post('config',data);\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(data){\r\n return api.post('getSsoToken',data);\r\n },\r\n\r\n\r\n //访问文件夹列表\r\n folderList(data){\r\n return api.post('folderList',setData(data));\r\n },\r\n //访问文件列表\r\n articleList(data){\r\n return api.post('articleList',setData(data));\r\n },\r\n //获取文件详情\r\n articleDetail(data){\r\n return api.post('articleDetail',setData(data));\r\n },\r\n //修改文件\r\n articleEdit(data){\r\n return api.post('articleEdit',setData(data));\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/methods.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2408f9b8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n\n<script>\n export default {\n name: 'App'\n }\n</script>\n\n<style lang=\"less\">\n @import \"./style/app.less\";\n @import \"./assets/font.css\";\n @import \"./style/normalize.css\";\n @basefont: 50;\n #app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size:24rem /@basefont;\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\n\r\nVue.use(Vuex);\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n user_info:null, //用户信息\r\n },\r\n mutations: {\r\n userInfo(state,data){\r\n state.user_info = data;\r\n },\r\n }\r\n});\r\n\r\nexport default store;\n\n\n// WEBPACK FOOTER //\n// ./src/vuex/index.js","import Vue from 'vue';\nimport Router from 'vue-router';\nimport ddLogin from '../assets/js/ddLogin';\nimport store from '../vuex/index';\n\nVue.use(Router);\n\nlet router = new Router({\n routes: [\n {\n path: '/',\n name: 'index',\n component: ()=>import('@/pages/index.vue'),\n children:[\n {\n path: 'folder',\n name:'folder',\n component: ()=>import('@/pages/folder.vue'),\n },\n {\n path: 'folder2',\n name:'folder2',\n component: ()=>import('@/pages/folder2.vue'),\n },\n {\n path: 'wangeditor',\n name:'wangeditor',\n component: ()=>import('@/pages/wangeditor.vue'),\n },\n {\n path: 'markdown',\n name:'markdown',\n component: ()=>import('@/pages/markdown.vue'),\n },\n {\n path: 'test',\n name:'test',\n component: ()=>import('@/pages/test.vue'),\n },\n ]\n },\n ]\n});\n\nrouter.beforeEach((to, from, next) => {\n //没有token则去获取\n let token = localStorage.getItem('doc_phone_token');\n alert('???????')\n if(!token){\n alert('没token')\n ddLogin.getCode(()=> next());\n }else{\n alert('有token')\n if(!window.location.href.includes('token')){\n alert('地址加token')\n window.location.href = window.location.href + '?token=' + localStorage.getItem('doc_phone_token');\n }\n next();\n }\n});\n\nexport default router;\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\nimport router from './router'\nimport { Button,Search,Divider,Loading,Field,Notify } from 'vant';\nimport VueQuillEditor from 'vue-quill-editor';\n// require styles\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\n\nVue.use(VueQuillEditor, /* { default global options } */{\n placeholder:'请输入内容',\n modules: {\n toolbar: [\n [{'color': []}],\n ['bold', 'italic', 'underline', 'strike'],\n [{'header': 1}, {'header': 2}],\n [{'header': [1, 2, 3, 4, 5, 6, false]}\n ],\n ],\n },\n // readOnly: false,\n // theme: 'bubble'\n});\n\nVue.use(Search);\nVue.use(Button);\nVue.use(Divider);\nVue.use(Loading);\nVue.use(Field);\nVue.use(Notify);\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n router,\n components: { App },\n template: '<App/>'\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","import api from '../../api/methods';\r\nexport default {\r\n //获取钉钉配置信息\r\n config(callback){\r\n api.config().then((data)=>{\r\n if(data.err_code == 0){\r\n console.log('config::',data)\r\n callback(data.data);\r\n }\r\n })\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(code,callback){\r\n api.getSsoToken({code:code\t}).then((data)=>{\r\n alert(JSON.stringify(data))\r\n if(data.err_code == 0){\r\n // alert(JSON.stringify(data))\r\n localStorage.setItem('doc_phone_token',data.data.token);\r\n if(!window.location.href.includes('token')){\r\n window.location.href = window.location.href + '?token=' + localStorage.getItem('doc_phone_token');\r\n }\r\n callback();\r\n }\r\n })\r\n },\r\n //获取微应用免登授权码\r\n getCode(callback){\r\n let _this = this;\r\n this.config((data)=>{\r\n dd.ready(function() {\r\n dd.runtime.permission.requestAuthCode({\r\n corpId: data.corpId, // 企业id\r\n onSuccess: function (info) {\r\n alert(JSON.stringify(info))\r\n // code = info.code // 通过该免登授权码可以获取用户身份\r\n _this.getSsoToken(info.code,()=> callback());\r\n },\r\n onFail: function (info) {\r\n alert(JSON.stringify(info))\r\n _this.getSsoToken(info.code);\r\n },\r\n });\r\n });\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/assets/js/ddLogin.js"],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),i=t.n(o),r=t("mtWM"),a=t.n(r),c=t("mw3O"),u=t.n(c),d={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},l=t("7+uW"),f=t("RjhT"),s=new l.a;a.a.interceptors.request.use(function(n){return n},function(n){return i.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code?s.$notify({type:"danger",duration:2e3,message:n.data.err_msg}):10003===n.data.err_code&&f.a.getCode(),n.data},function(n){return i.a.reject(n)});var p=function(n,e){var t=d[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};function h(n){var e=n||{};return e.token=localStorage.getItem("doc_phone_token"),e}e.a={config:function(n){return p("config",n)},getSsoToken:function(n){return p("getSsoToken",n)},folderList:function(n){return p("folderList",h(n))},articleList:function(n){return p("articleList",h(n))},articleDetail:function(n){return p("articleDetail",h(n))},articleEdit:function(n){return p("articleEdit",h(n))}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),i=(t("MY4N"),t("0zAV")),r=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),d=t("7+uW"),l={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var f=t("VU/8")({name:"App"},l,!1,function(n){t("Lorf")},null,null).exports,s=t("/ocq"),p=t("RjhT"),h=t("NYxO");d.a.use(h.a);new h.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});d.a.use(s.a);var g=new s.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(3).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(4).then(t.bind(null,"Y7I0"))}}]}]});g.beforeEach(function(n,e,t){var o=localStorage.getItem("doc_phone_token");alert("???????"),o?(alert("有token"),window.location.href.includes("token")||(alert("地址加token"),window.location.href=window.location.href+"?token="+localStorage.getItem("doc_phone_token")),t()):(alert("没token"),p.a.getCode(function(){return t()}))});var m=g,k=t("G0J2"),w=t.n(k);t("3f40"),t("4qOc"),t("+cgv");d.a.use(w.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),d.a.use(u.a),d.a.use(c.a),d.a.use(a.a),d.a.use(r.a),d.a.use(i.a),d.a.use(o.a),d.a.config.productionTip=!1,new d.a({el:"#app",router:m,components:{App:f},template:"<App/>"})},RjhT:function(n,e,t){"use strict";var o=t("mvHQ"),i=t.n(o),r=t("I22p");e.a={config:function(n){r.a.config().then(function(e){0==e.err_code&&(console.log("config::",e),n(e.data))})},getSsoToken:function(n,e){r.a.getSsoToken({code:n}).then(function(n){alert(i()(n)),0==n.err_code&&(localStorage.setItem("doc_phone_token",n.data.token),window.location.href.includes("token")||(window.location.href=window.location.href+"?token="+localStorage.getItem("doc_phone_token")),e())})},getCode:function(n){var e=this;this.config(function(t){dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:t.corpId,onSuccess:function(t){alert(i()(t)),e.getSsoToken(t.code,function(){return n()})},onFail:function(n){alert(i()(n)),e.getSsoToken(n.code)}})})})}}},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]); webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),i=t.n(o),r=t("mtWM"),a=t.n(r),c=t("mw3O"),u=t.n(c),d={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},l=t("7+uW"),f=t("RjhT"),s=new l.a;a.a.interceptors.request.use(function(n){return n},function(n){return i.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code?s.$notify({type:"danger",duration:2e3,message:n.data.err_msg}):10003===n.data.err_code&&f.a.getCode(),n.data},function(n){return i.a.reject(n)});var p=function(n,e){var t=d[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};function h(n){var e=n||{};return e.token=localStorage.getItem("doc_phone_token"),e}e.a={config:function(n){return p("config",n)},getSsoToken:function(n){return p("getSsoToken",n)},folderList:function(n){return p("folderList",h(n))},articleList:function(n){return p("articleList",h(n))},articleDetail:function(n){return p("articleDetail",h(n))},articleEdit:function(n){return p("articleEdit",h(n))}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),i=(t("MY4N"),t("0zAV")),r=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),d=t("7+uW"),l={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var f=t("VU/8")({name:"App"},l,!1,function(n){t("Lorf")},null,null).exports,s=t("/ocq"),p=t("RjhT"),h=t("NYxO");d.a.use(h.a);new h.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});d.a.use(s.a);var g=new s.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(3).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(4).then(t.bind(null,"Y7I0"))}}]}]});g.beforeEach(function(n,e,t){var o=localStorage.getItem("doc_phone_token");alert("???????"),o?(alert("有token"),alert(window.location.href),window.location.href.includes("token")||(alert("地址加token"),window.location.href=window.location.href+"?token="+o),t()):(alert("没token"),p.a.getCode(function(){return t()}))});var m=g,k=t("G0J2"),w=t.n(k);t("3f40"),t("4qOc"),t("+cgv");d.a.use(w.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),d.a.use(u.a),d.a.use(c.a),d.a.use(a.a),d.a.use(r.a),d.a.use(i.a),d.a.use(o.a),d.a.config.productionTip=!1,new d.a({el:"#app",router:m,components:{App:f},template:"<App/>"})},RjhT:function(n,e,t){"use strict";var o=t("mvHQ"),i=t.n(o),r=t("I22p");e.a={config:function(n){r.a.config().then(function(e){0==e.err_code&&(console.log("config::",e),n(e.data))})},getSsoToken:function(n,e){r.a.getSsoToken({code:n}).then(function(n){alert(i()(n)),0==n.err_code&&(localStorage.setItem("doc_phone_token",n.data.token),window.location.href.includes("token")||(window.location.href=window.location.href+"?token="+localStorage.getItem("doc_phone_token")),e())})},getCode:function(n){var e=this;this.config(function(t){dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:t.corpId,onSuccess:function(t){alert(i()(t)),e.getSsoToken(t.code,function(){return n()})},onFail:function(n){alert(i()(n)),e.getSsoToken(n.code)}})})})}}},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]);
//# sourceMappingURL=app.12b80a9a7f85b2d49c3c.js.map //# sourceMappingURL=app.fb7e7b8ee8c273b5f7d2.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["webpack:///./src/api/apiList.js","webpack:///./src/api/index.js","webpack:///./src/api/methods.js","webpack:///./src/App.vue?bbff","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///./src/vuex/index.js","webpack:///./src/router/index.js","webpack:///./src/main.js","webpack:///./src/assets/js/ddLogin.js"],"names":["apiList","config","getSsoToken","folderList","articleList","articleDetail","articleEdit","vm","Vue","axios","interceptors","request","use","error","promise_default","a","reject","response","data","err_code","$notify","type","duration","message","err_msg","ddLogin","getCode","api","apiName","url","method","baseURL","qs","stringify","setData","params","token","localStorage","getItem","__webpack_exports__","selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","ssrContext","Vuex","Store","state","user_info","mutations","userInfo","Router","router","routes","path","component","e","then","bind","children","beforeEach","to","from","next","alert","window","location","href","includes","VueQuillEditor","placeholder","modules","toolbar","color","header","search","es_button","divider","loading","field","notify","productionTip","el","components","App","template","callback","console","log","code","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default","setItem","_this","dd","ready","runtime","permission","requestAuthCode","corpId","onSuccess","info","onFail"],"mappings":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iCACXC,YAAY,kCACZC,cAAc,oCACdC,YAAY,2DCHZC,EAAK,IAAIC,IAGbC,IAAMC,aAAaC,QAAQC,IAAI,SAAUX,GAErC,OAAOA,GACR,SAAUY,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAI1BJ,IAAMC,aAAaO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EAG3B,IAAInF,KACFoF,GAAI,OACJ9B,SACA+B,YAAcC,OACdC,SAAU,mFCvCGxD,EAAA,GAEXtC,OAFW,SAEJ+F,GACHrE,IAAI1B,SAASkE,KAAK,SAACjD,GACK,GAAjBA,EAAKC,WACJ8E,QAAQC,IAAI,WAAWhF,GACvB8E,EAAS9E,EAAKA,UAK1BhB,YAXW,SAWCiG,EAAKH,GACbrE,IAAIzB,aAAaiG,KAAKA,IAAQhC,KAAK,SAACjD,GAChCwD,MAAM0B,IAAelF,IACD,GAAjBA,EAAKC,WAEJkB,aAAagE,QAAQ,kBAAkBnF,EAAKA,KAAKkB,OAC7CuC,OAAOC,SAASC,KAAKC,SAAS,WAC9BH,OAAOC,SAASC,KAAOF,OAAOC,SAASC,KAAO,UAAYxC,aAAaC,QAAQ,oBAEnF0D,QAKZtE,QAzBW,SAyBHsE,GACJ,IAAIM,EAAQ3D,KACZA,KAAK1C,OAAO,SAACiB,GACTqF,GAAGC,MAAM,WACLD,GAAGE,QAAQC,WAAWC,iBAClBC,OAAQ1F,EAAK0F,OACbC,UAAW,SAAUC,GACjBpC,MAAM0B,IAAeU,IAErBR,EAAMpG,YAAY4G,EAAKX,KAAK,kBAAKH,OAErCe,OAAQ,SAAUD,GACdpC,MAAM0B,IAAeU,IACrBR,EAAMpG,YAAY4G,EAAKX","file":"static/js/app.fb7e7b8ee8c273b5f7d2.js","sourcesContent":["\r\nexport default {\r\n config:'index.php/login/index/config', //获取钉钉配置信息\r\n getSsoToken:'index.php/login/index/getSsoToken', //通过免签码获取uid\r\n\r\n\r\n folderList:'index.php/api/index/folderList', //访问文件夹列表\r\n articleList:'index.php/api/index/articleList', //访问文件列表\r\n articleDetail:'index.php/api/index/articleDetail', //获取文件详情\r\n articleEdit:'index.php/api/index/articleEdit', //修改文件\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/apiList.js","import axios from 'axios';\r\nimport qs from 'qs';\r\nimport apiList from './apiList';\r\nimport Vue from 'vue';\r\nimport ddLogin from \"../assets/js/ddLogin\";\r\n\r\nlet vm = new Vue();\r\nlet baseUrl = 'http://doc-phone.linanquan.com/';\r\n// 添加请求拦截器\r\naxios.interceptors.request.use(function (config) {\r\n // 在发送请求之前做些什么\r\n return config;\r\n}, function (error) {\r\n // 对请求错误做些什么\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\naxios.interceptors.response.use(function (response) {\r\n // 对响应数据做点什么\r\n if(response.data.err_code !== 0){\r\n vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});\r\n }else if(response.data.err_code === 10003){\r\n //token过期去获取\r\n ddLogin.getCode();\r\n }\r\n return response.data;\r\n}, function (error) {\r\n // 对响应错误做点什么\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default {\r\n post(apiName,data){\r\n let url = apiList[apiName];\r\n return axios({\r\n method:'post',\r\n baseURL:baseUrl,\r\n url:url,\r\n data:qs.stringify(data),\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/index.js","import api from './index';\r\n\r\nfunction setData(data) {\r\n let params = data ? data : {};\r\n params.token = localStorage.getItem('doc_phone_token');\r\n return params;\r\n}\r\n\r\nexport default {\r\n //获取钉钉配置信息\r\n config(data){\r\n return api.post('config',data);\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(data){\r\n return api.post('getSsoToken',data);\r\n },\r\n\r\n\r\n //访问文件夹列表\r\n folderList(data){\r\n return api.post('folderList',setData(data));\r\n },\r\n //访问文件列表\r\n articleList(data){\r\n return api.post('articleList',setData(data));\r\n },\r\n //获取文件详情\r\n articleDetail(data){\r\n return api.post('articleDetail',setData(data));\r\n },\r\n //修改文件\r\n articleEdit(data){\r\n return api.post('articleEdit',setData(data));\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/methods.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2408f9b8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n\n<script>\n export default {\n name: 'App'\n }\n</script>\n\n<style lang=\"less\">\n @import \"./style/app.less\";\n @import \"./assets/font.css\";\n @import \"./style/normalize.css\";\n @basefont: 50;\n #app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size:24rem /@basefont;\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\n\r\nVue.use(Vuex);\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n user_info:null, //用户信息\r\n },\r\n mutations: {\r\n userInfo(state,data){\r\n state.user_info = data;\r\n },\r\n }\r\n});\r\n\r\nexport default store;\n\n\n// WEBPACK FOOTER //\n// ./src/vuex/index.js","import Vue from 'vue';\nimport Router from 'vue-router';\nimport ddLogin from '../assets/js/ddLogin';\nimport store from '../vuex/index';\n\nVue.use(Router);\n\nlet router = new Router({\n routes: [\n {\n path: '/',\n name: 'index',\n component: ()=>import('@/pages/index.vue'),\n children:[\n {\n path: 'folder',\n name:'folder',\n component: ()=>import('@/pages/folder.vue'),\n },\n {\n path: 'folder2',\n name:'folder2',\n component: ()=>import('@/pages/folder2.vue'),\n },\n {\n path: 'wangeditor',\n name:'wangeditor',\n component: ()=>import('@/pages/wangeditor.vue'),\n },\n {\n path: 'markdown',\n name:'markdown',\n component: ()=>import('@/pages/markdown.vue'),\n },\n {\n path: 'test',\n name:'test',\n component: ()=>import('@/pages/test.vue'),\n },\n ]\n },\n ]\n});\n\nrouter.beforeEach((to, from, next) => {\n //没有token则去获取\n let token = localStorage.getItem('doc_phone_token');\n alert('???????')\n if(!token){\n alert('没token')\n ddLogin.getCode(()=> next());\n }else{\n alert('有token')\n alert(window.location.href)\n if(!window.location.href.includes('token')){\n alert('地址加token')\n window.location.href = window.location.href + '?token=' + token;\n }\n next();\n }\n});\n\nexport default router;\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\nimport router from './router'\nimport { Button,Search,Divider,Loading,Field,Notify } from 'vant';\nimport VueQuillEditor from 'vue-quill-editor';\n// require styles\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\n\nVue.use(VueQuillEditor, /* { default global options } */{\n placeholder:'请输入内容',\n modules: {\n toolbar: [\n [{'color': []}],\n ['bold', 'italic', 'underline', 'strike'],\n [{'header': 1}, {'header': 2}],\n [{'header': [1, 2, 3, 4, 5, 6, false]}\n ],\n ],\n },\n // readOnly: false,\n // theme: 'bubble'\n});\n\nVue.use(Search);\nVue.use(Button);\nVue.use(Divider);\nVue.use(Loading);\nVue.use(Field);\nVue.use(Notify);\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n router,\n components: { App },\n template: '<App/>'\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","import api from '../../api/methods';\r\nexport default {\r\n //获取钉钉配置信息\r\n config(callback){\r\n api.config().then((data)=>{\r\n if(data.err_code == 0){\r\n console.log('config::',data)\r\n callback(data.data);\r\n }\r\n })\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(code,callback){\r\n api.getSsoToken({code:code\t}).then((data)=>{\r\n alert(JSON.stringify(data))\r\n if(data.err_code == 0){\r\n // alert(JSON.stringify(data))\r\n localStorage.setItem('doc_phone_token',data.data.token);\r\n if(!window.location.href.includes('token')){\r\n window.location.href = window.location.href + '?token=' + localStorage.getItem('doc_phone_token');\r\n }\r\n callback();\r\n }\r\n })\r\n },\r\n //获取微应用免登授权码\r\n getCode(callback){\r\n let _this = this;\r\n this.config((data)=>{\r\n dd.ready(function() {\r\n dd.runtime.permission.requestAuthCode({\r\n corpId: data.corpId, // 企业id\r\n onSuccess: function (info) {\r\n alert(JSON.stringify(info))\r\n // code = info.code // 通过该免登授权码可以获取用户身份\r\n _this.getSsoToken(info.code,()=> callback());\r\n },\r\n onFail: function (info) {\r\n alert(JSON.stringify(info))\r\n _this.getSsoToken(info.code);\r\n },\r\n });\r\n });\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/assets/js/ddLogin.js"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap f4f38be081b17e7221f1"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","8","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT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AAAF,EAaApB,EAAA2B,YAAAxB,GAEAL,GAIAX,EAAAyC,EAAA3C,EAGAE,EAAA0C,EAAAxC,EAGAF,EAAA2C,EAAA,SAAAvC,EAAAwC,EAAAC,GACA7C,EAAA8C,EAAA1C,EAAAwC,IACAlD,OAAAqD,eAAA3C,EAAAwC,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA7C,EAAAmD,EAAA,SAAA9C,GACA,IAAAwC,EAAAxC,KAAA+C,WACA,WAA2B,OAAA/C,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA2C,EAAAE,EAAA,IAAAA,GACAA,GAIA7C,EAAA8C,EAAA,SAAAO,EAAAC,GAAsD,OAAA5D,OAAAC,UAAAC,eAAAC,KAAAwD,EAAAC,IAGtDtD,EAAAyB,EAAA,KAGAzB,EAAAuD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2564c4fec04e5b285562.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t8: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"0b3e29fa9fb715a6c568\",\"1\":\"7e05128e2126c69a7e68\",\"2\":\"886e1aadccebe3fa542c\",\"3\":\"1d5f70c5ef57426d51dd\",\"4\":\"d10ba5b27b34dea08bd1\",\"5\":\"9cd0f2020c75b7a9dbf1\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap f4f38be081b17e7221f1"],"sourceRoot":""} {"version":3,"sources":["webpack:///webpack/bootstrap 16edbd2166115cce01b6"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","8","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,G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,EAAAE,EAAA,IAAAA,GACAA,GAIA7C,EAAA8C,EAAA,SAAAO,EAAAC,GAAsD,OAAA5D,OAAAC,UAAAC,eAAAC,KAAAwD,EAAAC,IAGtDtD,EAAAyB,EAAA,KAGAzB,EAAAuD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2564c4fec04e5b285562.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t8: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"0b3e29fa9fb715a6c568\",\"1\":\"7e05128e2126c69a7e68\",\"2\":\"886e1aadccebe3fa542c\",\"3\":\"1d5f70c5ef57426d51dd\",\"4\":\"d10ba5b27b34dea08bd1\",\"5\":\"9cd0f2020c75b7a9dbf1\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 16edbd2166115cce01b6"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
...@@ -51,9 +51,10 @@ router.beforeEach((to, from, next) => { ...@@ -51,9 +51,10 @@ router.beforeEach((to, from, next) => {
ddLogin.getCode(()=> next()); ddLogin.getCode(()=> next());
}else{ }else{
alert('有token') alert('有token')
alert(window.location.href)
if(!window.location.href.includes('token')){ if(!window.location.href.includes('token')){
alert('地址加token') alert('地址加token')
window.location.href = window.location.href + '?token=' + localStorage.getItem('doc_phone_token'); window.location.href = window.location.href + '?token=' + token;
} }
next(); next();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment