{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/views/FavoritesFunc.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/views/FavoritesFunc.vue","mtime":1740130327260},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport API from \"@/api.js\";\nimport Constant from \"@/Constant.js\";\nexport default {\n name:'favoritesFunc',\n created() {\n this.aToken = \"?accessToken=\" + localStorage.getItem(\"accessToken\")\n this.contextPath = obpmConfig.obpmFilePath;\n API.getLaunchMenu(this.$root.appid, false, true,{\n onSucess: response => {\n this.startmenus = response.data.data;\n }\n })\n },\n beforeRouteLeave(to, from, next) {\n from.meta.keepAlive = false;\n next();\n },\n computed: {\n modes() {\n let modes = [];\n if (this.startmenus)\n this.startmenus.forEach(menu => {\n if (menu.parent == this.$root.appid) {\n modes.push({\n id: menu.id,\n description: menu.description\n });\n }\n });\n return modes;\n }\n },\n data: function() {\n return {\n startmenus: [],\n Constant,\n addMenu:false,\n contextPath: '',\n aToken:''\n };\n },\n methods: {\n onAddClick(menu){\n this.addMenu = true;\n API.addMenuToFavorites(this.$root.appid, menu.id, {onSucess: response=>{\n if (response.data.errcode == 0)\n menu.usual = true;\n }});\n },\n\n onRemoveClick(menu){\n API.removeMenuFromFavorites(this.$root.appid, menu.id, {onSucess: response=>{\n if (response.data.errcode == 0)\n menu.usual = false;\n }});\n },\n\n }\n};\n",null]}