<filename>node_modules/.cache/vue-loader/286deb6ccdd4f06b4ce87afe4faa8cbb.json<gh_stars>0
{"remainingRequest":"D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\src\\layout\\components\\Sidebar\\Link.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\src\\layout\\components\\Sidebar\\Link.vue","mtime":1585207882747},{"path":"D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\品达通用权限系统\\资料\\前端工程\\pinda-authority-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { isExternal } from '@/utils/my-validate'\r\n\r\nexport default {\r\n  props: {\r\n    to: {\r\n      type: String,\r\n      required: true\r\n    }\r\n  },\r\n  methods: {\r\n    linkProps(url) {\r\n      if (isExternal(url)) {\r\n        // console.log(url)\r\n        // let result = `/myiframe/urlPath?${objToform(params)}`\r\n        // return {\r\n        //   is: 'a',\r\n        //   href: url,\r\n        //   target: '_blank',\r\n        //   rel: 'noopener'\r\n        // }\r\n        return {\r\n          is: 'router-link',\r\n          to: `/myiframe/iframe?urlPath&src=${url}`\r\n        }\r\n      }\r\n\r\n      return {\r\n        is: 'router-link',\r\n        to: url\r\n      }\r\n    },\r\n    objToform(obj) {\r\n      let result = []\r\n      Object.keys(obj).forEach(ele => {\r\n        result.push(`${ele}=${obj[ele]}`)\r\n      })\r\n      return result.join('&')\r\n    }\r\n  }\r\n}\r\n",null]}