{"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/App.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/App.vue","mtime":1740130327253},{"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\nimport API from \"@/api.js\";\nimport { Indicator } from \"mint-ui\";\n\nexport default {\n\n\n name:'app',\n provide(){\n return{\n reload:this.reload\n\n }\n },\n beforeCreate () {\n\n API.getMenus(this.$root.appid, {\n onSucess: (response, bool=false) => {\n this.bool=!bool\n\n if (bool) {\n Indicator.open({\n text: \"加载中...\",\n spinnerType: \"fading-circle\"\n });\n }\n\n }\n });\n },\n computed:{\n key(){\n return this.$route.name?this.$route.name+new Date():this.$route+ new Date();\n }\n },\n data(){\n return{\n isRouterAlive:true,\n menuTab:true,\n currIndex: 0,\n active: 0,\n tabNav:[\n {\n name: \"menu\",\n title: \"首页\"\n },\n {\n name: \"board\",\n title: \"看板\"\n } \n ], \n bool:false,\n }\n },\n mounted(){ \n if(this.$route.path==\"/\"){ \n this.menuTab=true\n this.active=0\n this.currIndex=0\n } \n else if(this.$route.path==\"/menu\"){\n this.menuTab=true\n this.active=0\n this.currIndex=0\n }\n else if(this.$route.path==\"/board\"){\n this.menuTab=true\n this.active=1\n this.currIndex=1 \n }else{\n this.menuTab=false\n }\n },\n watch:{\n $route(to){\n if(to.path =='/'){\n this.menuTab=true\n this.active=0\n this.currIndex=0\n }\n else if(to.path =='/menu'){\n this.menuTab=true\n this.active=0\n this.currIndex=0\n }else if(to.path =='/board'){\n this.menuTab=true\n this.active=1\n this.currIndex=1 \n }else{\n this.menuTab=false\n }\n }\n }, \n methods:{\n reload(){\n this.isRouterAlive = false;\n this.$nextTick(function(){\n this.isRouterAlive = true;\n })\n },\n tabNavClick(item,index){\n this.currIndex = index;\n this.$router.push(item.name)\n }\n }\n}\n",null]}