1 |
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/store/modules/permission/mutation-types.ts","webpack:///./src/store/modules/permission/action-types.ts","webpack:///./src/store/modules/permission/mutations.ts","webpack:///./src/store/modules/permission/actions.ts","webpack:///./src/store/modules/user/mutation-types.ts","webpack:///./src/store/modules/permission/state.ts","webpack:///./src/store/modules/permission/index.ts","webpack:///./src/store/modules/user/state.ts","webpack:///./src/store/modules/user/mutations.ts","webpack:///./src/store/modules/user/action-types.ts","webpack:///./src/store/modules/user/actions.ts","webpack:///./src/store/modules/user/index.ts","webpack:///./src/store/index.ts","webpack:///./src/components/header/Comheader.vue?d604","webpack:///./src/utils/cookies.ts","webpack:///./src/constant/key.ts","webpack:///./src/utils/flexible.js","webpack:///./src/router/index.ts","webpack:///./src/styles/index.scss?d239","webpack:///./src/App.vue?e5f7","webpack:///./src/App.vue?a0a5","webpack:///./src/components/header/Comheader.vue?0680","webpack:///./src/components/header/Comheader.vue?4c07","webpack:///./src/components/header/Comheader.vue","webpack:///./src/App.vue?3acc","webpack:///./src/App.vue","webpack:///./src/permission.ts","webpack:///./src/main.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","jsonpArray","window","oldJsonpFunction","slice","PermissionMutationType","PermissionActionType","mutations","SET_ROUTES","state","routes","concat","dynamicRoutes","UserMutationTypes","hasPermission","roles","route","meta","some","role","includes","filterAsyncRoutes","res","forEach","children","actions","ACTION_SET_ROUTES","accessedRoutes","commit","token","openid","userName","userId","id","userPhone","phone","projectId","companyId","mac","remoteControl","UserActionTypes","SET_TOKEN","SET_USER_MAC","SET_USER_NAME","SET_USER_ID","SET_USER_PHONE","SET_PROJECT_ID","SET_COMPANY_ID","SET_REMOTECONTROL","ACTION_LOGIN","userInfo","ACTION_RESET_TOKEN","ACTION_GET_USER_INFO","JSON","stringify","macAdr","ACTION_CHANGE_ROLES","store","useStore","dispatch","permission","item","router","addRoute","ACTION_LOGIN_OUT","debug","plugins","user","getToken","tokenKey","getProjectId","setProjectId","set","setToken","removeToken","remove","getCookieMac","macKey","getSessionUserInfo","sessionStorage","getItem","userInfoKey","parse","setSessionUserInfo","setItem","Keys","win","lib","tid","doc","docEl","documentElement","metaEl","querySelector","flexibleEl","dpr","scale","flexible","match","parseFloat","parseInt","content","initialDpr","maximumDpr","toFixed","navigator","appVersion","isIPhone","devicePixelRatio","firstElementChild","wrap","write","innerHTML","refreshRem","width","getBoundingClientRect","rem","style","fontSize","addEventListener","persisted","readyState","body","rem2px","val","this","px2rem","Home","Tiantan","Weather","weatherTest","constantRoutes","path","redirect","title","hideHeader","component","asyncRoutes","history","resetRouter","newRouter","matcher","_hoisted_1","class","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_view","fullPath","_component_VanIcon","background","color","onClick","goBack","title1","metaObj","showLogoOut","goLogin","props","String","default","components","VanIcon","setup","proxyData","toName","go","query","__exports__","Header","beforeEach","to","_","next","afterEach","app","App","use","mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAI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ACP6I,OAFyB,WAGnB7I,EAAMC,KAAKwJ,OACb3G,EAAO7J,KAAK,CAAEqE,KAAM0C,EAAMC,KAAKwJ,SAE/B3G,EAAO4G,IAAI,IAGfT,QATyB,WAUvB,IAAI3H,EAAW,iBACfwB,EAAO7J,KAAK,CACVqE,KAAM,OACNqM,MAAO,CAAErI,IAAKA,EAAK7F,KAAM,gBAO/B,OAHA,gBAAU,eAGV,kBACK,eAAO+N,O,iCC3ChB,MAAMI,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS,GAAQ,CAAC,YAAY,qBAE1E,QCHA,iBAAgB,CAC7BP,WAAY,CACVQ,OAAA,GAEFN,MAJ6B,WAK3B,IAAMvJ,EAAa,iBACbwJ,EAAY,eAAS,CACzBxJ,MAAOA,IAKT,OAHA,gBAAU,eAGV,kBACK,eAAOwJ,O,UCZhB,MAAM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASxB,GAAQ,CAAC,YAAY,qBAE1E,Q,oECNf,OAAO8B,WAAP,yDAAkB,WAAOC,EAA6BC,EAA4BC,GAAhE,iFAChBA,IADgB,2CAAlB,2DAIA,OAAOC,WAAU,SAACH,OCClB,IAAMI,EAAM,eAAUC,GACtBD,EACGE,IAAI5H,EAAA,MACJ4H,IAAI,QACJC,MAAM","file":"static/js/app.51e091b2.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\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 = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && 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(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-4b78c198\":\"9d733c58\",\"chunk-01583e5c\":\"26fefc56\",\"chunk-1c7ba3e5\":\"0df371a4\",\"chunk-351101fa\":\"cd379150\",\"chunk-3ebb9471\":\"fac206a6\",\"chunk-5050ccb1\":\"6e6ffa8f\"}[chunkId] + \".js\"\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 promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-01583e5c\":1,\"chunk-351101fa\":1,\"chunk-3ebb9471\":1,\"chunk-5050ccb1\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"static/css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-4b78c198\":\"31d6cfe0\",\"chunk-01583e5c\":\"c2ddeee8\",\"chunk-1c7ba3e5\":\"31d6cfe0\",\"chunk-351101fa\":\"e4cf7a11\",\"chunk-3ebb9471\":\"cc20762e\",\"chunk-5050ccb1\":\"3785c908\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"/sk/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","/*\n * @Description:\n * @Author: ZY\n * @Date: 2020-12-25 14:28:43\n * @LastEditors: ZY\n * @LastEditTime: 2020-12-25 14:32:35\n */\nexport enum PermissionMutationType{\n SET_ROUTES = 'SET_ROUTES'\n}\n","export enum PermissionActionType{\n ACTION_SET_ROUTES = 'ACTION_SET_ROUTES'\n}\n","/*\n * @Description:\n * @Author: ZY\n * @Date: 2020-12-25 14:28:12\n * @LastEditors: ZY\n * @LastEditTime: 2020-12-25 15:03:37\n */\nimport { MutationTree } from 'vuex'\nimport { PermissionState } from './state'\nimport { PermissionMutationType } from './mutation-types'\nimport { RouteRecordRaw } from 'vue-router'\nimport { constantRoutes } from '@/router'\n\nexport type Mutations<S = PermissionState> = {\n [PermissionMutationType.SET_ROUTES](state: S, routes: RouteRecordRaw[]): void\n}\n\nexport const mutations: MutationTree<PermissionState> & Mutations = {\n [PermissionMutationType.SET_ROUTES](state: PermissionState, routes: RouteRecordRaw[]) {\n state.routes = constantRoutes.concat(routes)\n state.dynamicRoutes = routes\n }\n\n}\n","import { ActionTree, ActionContext } from 'vuex'\nimport { RootState } from '@/store'\nimport { PermissionState } from './state'\nimport { Mutations } from './mutations'\nimport { PermissionMutationType } from './mutation-types'\nimport { PermissionActionType } from './action-types'\nimport { asyncRoutes } from '@/router'\nimport { RouteRecordRaw } from 'vue-router'\n\ntype AugmentedActionContext = {\n commit<K extends keyof Mutations>(\n key: K,\n payload: Parameters<Mutations[K]>[1],\n ): ReturnType<Mutations[K]>\n} & Omit<ActionContext<PermissionState, RootState>, 'commit'>\n\nconst hasPermission = (roles: string[], route: RouteRecordRaw) => {\n if (route.meta && route.meta.roles) {\n return roles.some(role => {\n if (route.meta?.roles !== undefined) {\n return route.meta.roles.includes(role)\n }\n })\n } else {\n return true\n }\n}\n\nexport const filterAsyncRoutes = (routes: RouteRecordRaw[], roles: string[]) => {\n const res: RouteRecordRaw[] = []\n routes.forEach(route => {\n const r = { ...route }\n if (hasPermission(roles, r)) {\n if (r.children) {\n r.children = filterAsyncRoutes(r.children, roles)\n }\n res.push(r)\n }\n })\n return res\n}\n\nexport interface Actions {\n [PermissionActionType.ACTION_SET_ROUTES](\n { commit }: AugmentedActionContext\n , roles: string[]): void\n}\n\nexport const actions: ActionTree<PermissionState, RootState> & Actions = {\n [PermissionActionType.ACTION_SET_ROUTES](\n { commit }: AugmentedActionContext\n , roles: string[]) {\n let accessedRoutes\n if (roles.includes('admin')) {\n accessedRoutes = asyncRoutes\n } else {\n accessedRoutes = filterAsyncRoutes(asyncRoutes, roles)\n }\n commit(PermissionMutationType.SET_ROUTES, accessedRoutes)\n }\n}\n","/*\n * @Description: user mutations type\n * @Author: ZY\n * @Date: 2020-12-23 10:25:37\n * @LastEditors: ZY\n * @LastEditTime: 2020-12-28 11:33:53\n */\n\nexport enum UserMutationTypes {\n SET_TOKEN = 'SET_TOKEN',\n SET_USER_NAME = 'SET_USER_NAME',\n SET_USER_ID = 'SET_USER_ID',\n SET_USER_PHONE = 'SET_USER_PHONE',\n SET_PROJECT_ID = 'SET_PROJECT_ID',\n SET_COMPANY_ID = 'SET_COMPANY_ID',\n SET_REMOTECONTROL = 'SET_REMOTECONTROL',\n SET_USER_MAC = 'SET_USER_MAC'\n}\n","/*\n * @Description:\n * @Author: ZY\n * @Date: 2020-12-25 14:15:18\n * @LastEditors: ZY\n * @LastEditTime: 2020-12-26 13:57:51\n */\n\nimport { RouteRecordRaw } from 'vue-router'\n\nexport interface PermissionState {\n routes: RouteRecordRaw[]\n dynamicRoutes: RouteRecordRaw[]\n}\n\nexport const state: PermissionState = {\n routes: [],\n dynamicRoutes: []\n}\n","import {\n Store as VuexStore,\n CommitOptions,\n DispatchOptions,\n Module\n} from 'vuex'\nimport { RootState } from '@/store'\nimport { mutations, Mutations } from './mutations'\nimport { actions, Actions } from './actions'\nimport type { PermissionState } from './state'\nimport { state } from './state'\n\nexport { PermissionState }\n\nexport type PermissionStore<S = PermissionState> = Omit<VuexStore<S>, 'getters' | 'commit' | 'dispatch'>\n & {\n commit<K extends keyof Mutations, P extends Parameters<Mutations[K]>[1]>(\n key: K,\n payload: P,\n options?: CommitOptions\n ): ReturnType<Mutations[K]>\n } & {\n dispatch<K extends keyof Actions>(\n key: K,\n payload: Parameters<Actions[K]>[1],\n options?: DispatchOptions\n ): ReturnType<Actions[K]>\n };\nexport const store: Module<PermissionState, RootState> = {\n state,\n mutations,\n actions\n // namespaced: true,\n}\n","import Keys from '@/constant/key'\nimport { getToken, getProjectId, getCookieUserInfo, getSessionUserInfo, getCookieMac } from '@/utils/cookies'\n\nexport interface UserState {\n token: string\n openid: string\n userName: string\n userId: string\n userPhone: number\n projectId: any,\n companyId: string,\n mac: any,\n remoteControl: boolean // 当前用户是否可以远程控制设备\n}\n\nexport const state: UserState = {\n token: getToken() || '',\n openid: Keys.openid,\n userName: getSessionUserInfo() ? getSessionUserInfo().name : '',\n userId: getSessionUserInfo() ? getSessionUserInfo().id : '',\n userPhone: getSessionUserInfo() ? getSessionUserInfo().phone : 0,\n projectId: getProjectId()?getProjectId():'',\n companyId: '',\n mac: getCookieMac() ? getCookieMac() : '',\n remoteControl: false\n}\n","import { MutationTree } from 'vuex'\nimport { UserState } from './state'\nimport { UserMutationTypes } from './mutation-types'\nimport Cookies from 'js-cookie'\nimport Keys from '@/constant/key'\nimport { setProjectId } from '@/utils/cookies'\n\nexport type Mutations<S = UserState> = {\n [UserMutationTypes.SET_TOKEN](state: S, token: string): void\n [UserMutationTypes.SET_USER_NAME](state: S, userName: string): void\n [UserMutationTypes.SET_USER_ID](state: S, userId: string): void\n [UserMutationTypes.SET_USER_PHONE](state: S, userPhone: number): void\n [UserMutationTypes.SET_PROJECT_ID](state: S, projectId: string): void\n [UserMutationTypes.SET_COMPANY_ID](state: S, companyId: string): void\n [UserMutationTypes.SET_USER_MAC](state: S, companyId: string): void,\n [UserMutationTypes.SET_REMOTECONTROL](state: S, remoteControl: boolean): void\n}\n\nexport const mutations: MutationTree<UserState> & Mutations = {\n [UserMutationTypes.SET_TOKEN](state: UserState, token: string) {\n state.token = token\n },\n [UserMutationTypes.SET_USER_MAC](state: UserState, mac: string) {\n state.mac = mac\n },\n\n [UserMutationTypes.SET_USER_NAME](state: UserState, userName: string) {\n state.userName = userName\n },\n\n [UserMutationTypes.SET_USER_ID](state: UserState, userId: string) {\n state.userId = userId\n },\n [UserMutationTypes.SET_USER_PHONE](state: UserState, userPhone: number) {\n state.userPhone = userPhone\n },\n [UserMutationTypes.SET_PROJECT_ID](state: UserState, projectId: string) {\n // Cookies.set(Keys.projectId, projectId)\n setProjectId(projectId)\n // debugger\n state.projectId = projectId\n },\n [UserMutationTypes.SET_COMPANY_ID](state: UserState, companyId: string) {\n state.companyId = companyId\n },\n [UserMutationTypes.SET_REMOTECONTROL](state: UserState, remoteControl: boolean) {\n state.remoteControl = remoteControl\n }\n\n}\n","\nexport enum UserActionTypes {\n ACTION_LOGIN = 'ACTION_LOGIN',\n ACTION_RESET_TOKEN = 'ACTION_RESET_TOKEN',\n ACTION_GET_USER_INFO = 'ACTION_GET_USER_INFO',\n ACTION_CHANGE_ROLES = 'ACTION_CHANGE_ROLES',\n ACTION_LOGIN_OUT = 'ACTION_LOGIN_OUT',\n SET_USER_MAC = 'SET_USER_MAC',\n ACTION_GET_WORKSPACE = \"ACTION_GET_WORKSPACE\"\n}\n","import { ActionTree, ActionContext } from 'vuex'\nimport { RootState, store, useStore } from '@/store'\nimport { UserState } from './state'\nimport { Mutations } from './mutations'\nimport { UserMutationTypes } from './mutation-types'\nimport { UserActionTypes } from './action-types'\nimport { getCookieMac, removeToken, setSessionUserInfo, setToken } from '@/utils/cookies'\nimport { PermissionActionType } from '../permission/action-types'\nimport router, { resetRouter } from '@/router'\nimport { useRoute, useRouter } from 'vue-router'\nimport { RouteRecordRaw } from 'vue-router'\nimport { getUsersInfo } from '@/apis/user'\nimport { Toast } from 'vant'\nimport { queryWorkSpace } from '@/apis/envmonitor'\n\ntype AugmentedActionContext = {\n commit<K extends keyof Mutations>(\n key: K,\n payload: Parameters<Mutations[K]>[1],\n ): ReturnType<Mutations[K]>\n} & Omit<ActionContext<UserState, RootState>, 'commit'>\n\nexport interface Actions {\n [UserActionTypes.ACTION_LOGIN](\n { commit }: AugmentedActionContext,\n userInfo: { username: string, password: string }\n ): void\n\n [UserActionTypes.ACTION_RESET_TOKEN](\n { commit }: AugmentedActionContext\n ): void\n\n [UserActionTypes.ACTION_GET_USER_INFO](\n { commit }: AugmentedActionContext\n ): void\n\n // [UserActionTypes.ACTION_GET_WORKSPACE](\n // { commit }: AugmentedActionContext\n // ): void\n\n [UserActionTypes.ACTION_CHANGE_ROLES](\n { commit }: AugmentedActionContext, role: string\n ): void\n\n [UserActionTypes.ACTION_LOGIN_OUT](\n { commit }: AugmentedActionContext,\n ): void\n}\n\nexport const actions: ActionTree<UserState, RootState> & Actions = {\n async [UserActionTypes.ACTION_LOGIN](\n { commit }: AugmentedActionContext,\n userInfo: { username: string, password: string }\n ) {\n console.log(userInfo)\n // let { username, password } = userInfo\n // username = username.trim()\n // await loginRequest({ username, password }).then(async(res) => {\n // if (res?.code === 0 && res.data.accessToken) {\n // setToken(res.data.accessToken)\n commit(UserMutationTypes.SET_TOKEN, 'eyJhbGciOiJIUzI1NiJ9.eyJidWlsZGluZ19pZCI6ImZmZDc4OGIwOTQzNTQ4NTFiMDM0NTY2YzRkMTJkMTFjIiwidXNlcl9pZCI6IjYwMmVmNzA5YmViNjRhMWY5YTRiNmFmMjE5NmQwYWY3IiwidXNlcl9uYW1lIjpudWxsLCJvd25lcl9pZCI6IjkzNmE4ZWFlMDJmOTExZWNiNTQyMDJiNzIzZjVmYmQwIiwibXlfdGhpcmRfaWQiOiIyMGQ4Mzg0OTZjMGQ0ODk4YjFkN2MxNmRkZTc5ZGQwNiIsInRoaXJkX3BsYXRmb3JtX2lkIjoib3pUVGs1UFJSdUNIRUNqUXZKSXJyT3A1MkRuNCIsInNUaW1lIjoxNjQ2MDM1ODYzNTYwLCJleHAiOjE2NDYzOTU4NjM1NjAsInR5cGUiOiJ3ZWNoYXQiLCJhcHBfaWQiOiJ3eDNhZGQ2MzJmZDMxNDU3YzcifQ.C0khcRbjp_VuGF8gzr-cdybPhX1U1bSEk_48ypub6Y0')\n // }\n // }).catch((err) => {\n // console.log(err)\n // })\n },\n\n [UserActionTypes.ACTION_RESET_TOKEN](\n { commit }: AugmentedActionContext) {\n removeToken()\n commit(UserMutationTypes.SET_TOKEN, '')\n // commit(UserMutationTypes.SET_ROLES, [])\n },\n async [UserActionTypes.ACTION_GET_USER_INFO]({ commit }: AugmentedActionContext) {\n // let nowProjectId: any = 'Pj1101080259'\n const userInfo: any = {\n // userName: '陈珍',\n userName: 'admin',\n // userPhone: 15321277745,\n userPhone: 11111111111,\n // userId: '602ef709beb64a1f9a4b6af2196d0af7',\n userId:'admin'\n // userId: '9a1ecfbacb6b4f249bf2dd3ec7793ead'\n // userId: '1302990695845462811'\n }\n setSessionUserInfo(JSON.stringify(userInfo))\n commit(UserMutationTypes.SET_USER_NAME, userInfo.userName)\n commit(UserMutationTypes.SET_USER_PHONE, userInfo.phone)\n commit(UserMutationTypes.SET_USER_ID, userInfo.userId)\n let macAdr: any = getCookieMac()\n commit(UserMutationTypes.SET_USER_MAC, macAdr)\n // store.commit(UserMutationTypes.SET_PROJECT_ID, nowProjectId)\n },\n // async [UserActionTypes.ACTION_GET_WORKSPACE]({ commit }: AugmentedActionContext) {\n // let params: any = {\n // \"criteria\": {\n // \"macAddress\": \"DA:BF:E8:7A:61:97\"\n // },\n // \"orders\": [\n // {\n // \"column\": \"createTime\",\n // \"asc\": false\n // }\n // ],\n // \"page\": 1,\n // \"size\": 1\n // }\n // queryWorkSpace(params).then((res) => {\n // console.log(\"===\")\n // console.log(res)\n // })\n // },\n async [UserActionTypes.ACTION_CHANGE_ROLES](\n { commit }: AugmentedActionContext,\n role: string\n ) {\n const token = role + '-token'\n const store = useStore()\n commit(UserMutationTypes.SET_TOKEN, token)\n setToken(token)\n await store.dispatch(UserActionTypes.ACTION_GET_USER_INFO, undefined)\n store.dispatch(PermissionActionType.ACTION_SET_ROUTES, [])\n store.state.permission.dynamicRoutes.forEach((item: RouteRecordRaw) => {\n router.addRoute(item)\n })\n },\n\n [UserActionTypes.ACTION_LOGIN_OUT](\n { commit }: AugmentedActionContext\n ) {\n console.log(commit)\n removeToken()\n commit(UserMutationTypes.SET_TOKEN, '')\n // commit(UserMutationTypes.SET_ROLES, [])\n resetRouter()\n }\n}\n","import {\n Store as VuexStore,\n CommitOptions,\n DispatchOptions,\n Module\n} from 'vuex'\n\n// TODO: How to surpass cyclical dependency linting errors cleanly?\nimport { RootState } from '@/store'\nimport { state } from './state'\nimport { mutations, Mutations } from './mutations'\nimport { actions, Actions } from './actions'\nimport type { UserState } from './state'\n\nexport { UserState }\n\nexport type UserStore<S = UserState> = Omit<VuexStore<S>, 'getters' | 'commit' | 'dispatch'>\n& {\n commit<K extends keyof Mutations, P extends Parameters<Mutations[K]>[1]>(\n key: K,\n payload: P,\n options?: CommitOptions\n ): ReturnType<Mutations[K]>\n} & {\n dispatch<K extends keyof Actions>(\n key: K,\n payload: Parameters<Actions[K]>[1],\n options?: DispatchOptions\n ): ReturnType<Actions[K]>\n};\nexport const store: Module<UserState, RootState> = {\n state,\n mutations,\n actions\n // TODO: With namespaced option turned on, having problem how to use dispatch with action types...\n // But without it, a bigger store might have clashes in namings\n // namespaced: true,\n}\n","import { createStore, createLogger } from 'vuex'\nimport { store as permission, PermissionStore, PermissionState } from '@/store/modules/permission'\nimport { store as user, UserStore, UserState } from '@/store/modules/user'\n// import {store as portait, PortaitStore, PortaitState} from '@/store/modules/portait'\n\nexport interface RootState {\n permission: PermissionState\n user: UserState,\n // portait:PortaitState\n}\n\nexport type Store = PermissionStore<Pick<RootState, 'permission'>>\n & UserStore<Pick<RootState, 'user'>>\n\n// Plug in logger when in development environment\nconst debug = process.env.NODE_ENV !== 'production'\nconst plugins = debug ? [createLogger({})] : []\n// Plug in session storage based persistence\n// plugins.push(createPersistedState({ storage: window.sessionStorage }))\n\nexport const store = createStore({\n plugins,\n modules: {\n permission,\n user,\n }\n})\n\nexport function useStore(): Store {\n return store as Store\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Comheader.vue?vue&type=style&index=0&id=90cd68ae&lang=scss&scoped=true\"","import Keys from '@/constant/key'\nimport Cookies from 'js-cookie'\nimport { UserInfoModel } from '@/model/userModel'\n\nexport const setLanguage = (language: string) => Cookies.set(Keys.languageKey, language)\nexport const setSize = (size: string) => Cookies.set(Keys.sizeKey, size)\nexport const getToken = () => Cookies.get(Keys.tokenKey)\nexport const getProjectId = () => Cookies.get(Keys.projectId)\nexport const setProjectId = (projectId: any) => Cookies.set(Keys.projectId, projectId)\nexport const setToken = (token: string) => Cookies.set(Keys.tokenKey, token)\nexport const removeToken = () => Cookies.remove(Keys.tokenKey)\nexport const setCookieUserInfo = (userInfo: any) => Cookies.set(Keys.userInfoKey, userInfo)\nexport const setCookieMac = (mac: any) => Cookies.set(Keys.macKey, mac)\nexport const getCookieMac = () => {\n return Cookies.get(Keys.macKey)\n}\nexport const getCookieUserInfo = () => {\n let userInfo: any = Cookies.get(Keys.userInfoKey)\n if (userInfo) {\n return JSON.parse(userInfo)\n } else {\n return ''\n }\n}\n\nexport const getSessionUserInfo = () => {\n let userInfo: any = sessionStorage.getItem(Keys.userInfoKey)\n if (userInfo) {\n return JSON.parse(userInfo)\n } else {\n return ''\n }\n}\nexport const setSessionUserInfo = (userInfo: any) => sessionStorage.setItem(Keys.userInfoKey, userInfo)\n\n\n","class Keys {\n static sidebarStatusKey = 'vue3-typescript-admin-sidebarStatusKey'\n static languageKey = 'vue3-typescript-admin-languageKey'\n static sizeKey = 'vue3-typescript-admin-sizeKey'\n static tokenKey = 'accessToken'\n static projectId = 'projectId'\n static aseKey = 'vue3-typescript-admin-ase-key'\n static companyKey = '245e7060643811eb934c0237aedb39a6'\n static openid = '602ef709beb64a1f9a4b6af2196d0af7'\n // static pubname = 'ipdh5'\n static pubname = 'sagacarepad'\n static pubname1 = 'sagacareAndtenantslink'\n static storageSpaceKey = 'historySpace'\n static historySearchSpaceKey = 'historySearchSpace'\n static storageFloorKey = 'historyFloor'\n static storageSpaceInfoKey = 'storageSpaceInfo'\n static userInfoKey = 'userInfo'\n static macKey = \"mac\"\n}\n\nexport default Keys\n",";(function(win, lib) {\n var doc = win.document;\n var docEl = doc.documentElement;\n var metaEl = doc.querySelector('meta[name=\"viewport\"]');\n var flexibleEl = doc.querySelector('meta[name=\"flexible\"]');\n var dpr = 0;\n var scale = 0;\n var tid;\n var flexible = lib.flexible || (lib.flexible = {});\n\n if (metaEl) {\n console.warn('将根据已有的meta标签来设置缩放比例');\n var match = metaEl.getAttribute('content').match(/initial\\-scale=([\\d\\.]+)/);\n if (match) {\n scale = parseFloat(match[1]);\n dpr = parseInt(1 / scale);\n }\n } else if (flexibleEl) {\n var content = flexibleEl.getAttribute('content');\n if (content) {\n var initialDpr = content.match(/initial\\-dpr=([\\d\\.]+)/);\n var maximumDpr = content.match(/maximum\\-dpr=([\\d\\.]+)/);\n if (initialDpr) {\n dpr = parseFloat(initialDpr[1]);\n scale = parseFloat((1 / dpr).toFixed(2));\n }\n if (maximumDpr) {\n dpr = parseFloat(maximumDpr[1]);\n scale = parseFloat((1 / dpr).toFixed(2));\n }\n }\n }\n\n if (!dpr && !scale) {\n var isAndroid = win.navigator.appVersion.match(/android/gi);\n var isIPhone = win.navigator.appVersion.match(/iphone/gi);\n var devicePixelRatio = win.devicePixelRatio;\n if (isIPhone) {\n // iOS下,对于2和3的屏,用2倍的方案,其余的用1倍方案\n if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {\n dpr = 3;\n } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){\n dpr = 2;\n } else {\n dpr = 1;\n }\n } else {\n // 其他设备下,仍旧使用1倍的方案\n dpr = 1;\n }\n scale = 1 / dpr;\n }\n\n docEl.setAttribute('data-dpr', dpr);\n if (!metaEl) {\n metaEl = doc.createElement('meta');\n metaEl.setAttribute('name', 'viewport');\n metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no');\n if (docEl.firstElementChild) {\n docEl.firstElementChild.appendChild(metaEl);\n } else {\n var wrap = doc.createElement('div');\n wrap.appendChild(metaEl);\n doc.write(wrap.innerHTML);\n }\n }\n\n function refreshRem(){\n var width = docEl.getBoundingClientRect().width;\n if (width / dpr > 1920) {\n width = 1920 * dpr;\n }\n var rem = width / 10;\n docEl.style.fontSize = rem + 'px';\n flexible.rem = win.rem = rem;\n }\n\n win.addEventListener('resize', function() {\n clearTimeout(tid);\n tid = setTimeout(refreshRem, 300);\n }, false);\n win.addEventListener('pageshow', function(e) {\n if (e.persisted) {\n clearTimeout(tid);\n tid = setTimeout(refreshRem, 300);\n }\n }, false);\n\n if (doc.readyState === 'complete') {\n doc.body.style.fontSize = 12 * dpr + 'px';\n } else {\n doc.addEventListener('DOMContentLoaded', function(e) {\n doc.body.style.fontSize = 12 * dpr + 'px';\n }, false);\n }\n\n\n refreshRem();\n\n flexible.dpr = win.dpr = dpr;\n flexible.refreshRem = refreshRem;\n flexible.rem2px = function(d) {\n var val = parseFloat(d) * this.rem;\n if (typeof d === 'string' && d.match(/rem$/)) {\n val += 'px';\n }\n return val;\n }\n flexible.px2rem = function(d) {\n var val = parseFloat(d) / this.rem;\n if (typeof d === 'string' && d.match(/px$/)) {\n val += 'rem';\n }\n return val;\n }\n\n})(window, window['lib'] || (window['lib'] = {}));\n","import { createRouter, Router, createWebHashHistory, createWebHistory, RouteRecordRaw } from 'vue-router'\n\nconst Home: any = () => import('@/views/home/index.vue')\nconst Tiantan: any = () => import('@/views/home/tiantan.vue')\nconst Weather: any = () => import('@/views/weather/index.vue')\nconst weatherTest: any = () => import('@/views/weatherTest/index.vue')\nexport const constantRoutes: Array<RouteRecordRaw> = [\n {\n path: '/',\n redirect: '/index',\n meta: {\n title: '首页',\n hideHeader: true\n }\n },\n {\n path: '/index',\n component: Tiantan,\n name: 'tiantan',\n meta: {\n title: '天团',\n hideHeader: true\n }\n },\n {\n path: '/home',\n component: Home,\n name: 'home',\n meta: {\n title: '首页',\n hideHeader: true\n }\n },\n {\n path: '/weather',\n component: Weather,\n name: 'weather',\n meta: {\n title: '天气',\n hideHeader: true\n }\n },\n {\n path: '/weather-test',\n component: weatherTest,\n name: 'weatherTest',\n meta: {\n title: '天气',\n hideHeader: true\n }\n }\n]\n\nexport const asyncRoutes: Array<RouteRecordRaw> = [\n // ...permissionModules\n]\nconst router = createRouter({\n history: createWebHistory('/sk/'),\n // history: createWebHashHistory('/sgh5/'),\n routes: constantRoutes\n})\n\nexport function resetRouter() {\n const newRouter = router;\n (router as any).matcher = (newRouter as any).matcher // reset router\n}\n\nexport default router\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menuBg\":\"#fff\",\"menuText\":\"#162b64\",\"menuActiveText\":\"#435ebe\"};","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader-v16/dist/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./App.vue?vue&type=style&index=0&id=df9afb06&lang=scss&scoped=true\"","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-df9afb06\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"home\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(), _createBlock(_component_router_view, {\n key: _ctx.route.fullPath\n }))\n ]))\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-90cd68ae\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"header-title\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_VanIcon = _resolveComponent(\"VanIcon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"ignore_com-top\",\n id: \"header\",\n style: _normalizeStyle({ background: _ctx.color })\n }, [\n _createElementVNode(\"div\", {\n class: \"header\",\n style: _normalizeStyle({ background: _ctx.color })\n }, [\n _createElementVNode(\"div\", {\n class: \"header-return\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.goBack && _ctx.goBack(...args)))\n }, [\n _createVNode(_component_VanIcon, { name: \"arrow-left\" })\n ]),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.route.meta.title), 1),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.route.meta.title1), 1)\n ]),\n (_ctx.metaObj.showLogoOut)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"return-login\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.goLogin && _ctx.goLogin(...args)))\n }, \" 退出 \"))\n : _createCommentVNode(\"\", true)\n ], 4)\n ], 4))\n}","\nimport { defineComponent, onMounted, reactive, toRefs } from \"vue\";\nimport { Icon } from \"vant\";\nimport { useRoute, useRouter } from \"vue-router\";\nimport { getCookieMac } from \"@/utils/cookies\";\n\nexport default defineComponent({\n props: {\n color: {\n type: String,\n default: () => \"#fff\",\n },\n metaObj: {\n type: Object,\n default: () => {\n return {};\n },\n },\n // title: {\n // type: String,\n // default: () => \"\",\n // },\n },\n components: {\n VanIcon: Icon,\n },\n setup(props) {\n const router = useRouter();\n const route: any = useRoute();\n const proxyData = reactive({\n route: route,\n goBack() {\n if (route.meta.toName) {\n router.push({ name: route.meta.toName });\n } else {\n router.go(-1);\n }\n },\n goLogin() {\n let mac: any = getCookieMac();\n router.push({\n name: \"home\",\n query: { mac: mac, type: \"logoOut\" },\n });\n },\n });\n onMounted(() => {\n console.log(props);\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./Comheader.vue?vue&type=template&id=90cd68ae&scoped=true&ts=true\"\nimport script from \"./Comheader.vue?vue&type=script&lang=ts\"\nexport * from \"./Comheader.vue?vue&type=script&lang=ts\"\n\nimport \"./Comheader.vue?vue&type=style&index=0&id=90cd68ae&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/jing/work/sagacare/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-90cd68ae\"]])\n\nexport default __exports__","\nimport { defineComponent, nextTick, onMounted, reactive, toRefs } from \"vue\";\nimport Header from \"@/components/header/Comheader.vue\";\nimport { useRoute, onBeforeRouteUpdate } from \"vue-router\";\nimport axios from \"axios\";\n\nexport default defineComponent({\n components: {\n Header,\n },\n setup() {\n const route: any = useRoute();\n const proxyData = reactive({\n route: route\n });\n onMounted(() => {\n \n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./App.vue?vue&type=template&id=df9afb06&scoped=true&ts=true\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\n\nimport \"./App.vue?vue&type=style&index=0&id=df9afb06&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/jing/work/sagacare/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-df9afb06\"]])\n\nexport default __exports__","import router from '@/router'\nimport { RouteLocationNormalized } from 'vue-router'\n\nrouter.beforeEach(async (to: RouteLocationNormalized, _: RouteLocationNormalized, next: any) => {\n next()\n})\n\nrouter.afterEach((to: RouteLocationNormalized) => {\n // console.log(to)\n // Finish progress bar\n // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939\n\n // set page title\n // document.title = getPageTitle(to.meta.title)\n})\n","import { createApp } from 'vue'\nimport App from './App.vue'\nimport router from './router'\nimport { store } from './store'\nimport '@/utils/flexible.js'\nimport '@/styles/index.scss'\nimport '@/permission'\n\nconst app = createApp(App)\napp\n .use(store)\n .use(router)\n .mount('#app')\n"],"sourceRoot":""}
|