{"version":3,"sources":["webpack:///./src/views/weather/sunny.vue?487e","webpack:///./src/views/weather/snow.vue?6465","webpack:///./src/views/weather/cloud.vue?588f","webpack:///./src/views/weather/index.vue?d92c","webpack:///./src/views/weather/rain.vue","webpack:///./src/views/weather/rain.vue?b232","webpack:///./src/views/weather/cloud.vue","webpack:///./src/views/weather/cloud.vue?f4f6","webpack:///./src/views/weather/snow.vue","webpack:///./src/views/weather/snow.vue?1d63","webpack:///./src/views/weather/sunny.vue","webpack:///./src/views/weather/sunny.vue?c1f3","webpack:///./src/views/weather/index.vue?1efd","webpack:///./src/views/weather/index.vue","webpack:///./src/views/weather/index.vue?b72f","webpack:///./src/views/weather/rain.vue?78dc"],"names":["n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","src","alt","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","render","_ctx","_cache","$props","$setup","$data","$options","_component_sunny","_component_ran","_component_snow","_component_clound","weatherKey","key","nowTime","sTime","logonIcon","temperature","nowDate","week","envObj","Tdb","RH","HCHO","PM2d5","components","setup","props","proxyData","__exports__","ran","clound","snow","sunny","beforeRouteEnter","to","from","next","name","e","pathUrl","weatherData","text","type","times","currentData","intevell","timer","setNowDate","setInterval","timeArr","timeArr1","setWeatherKey","content","code","weathNum","getWeatherData","then","res","resResult","result","JSON","stringify","catch","setEnvData","map","item","data","toFixed","num","setTimerPage","setTimeout","queryEnvCurrentPage","length","error","changePage","clearTimeout","window","location","href","clearInterval"],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UiB,YAAY4B,OACjD7C,EAAUoC,aAEVpC,EAAU4C,0BAKfT,OAAM,SAACW,GACF9C,EAAUyC,IAAM,KACdzC,EAAUiB,aAAejB,EAAUiB,YAAY4B,OACjD7C,EAAUoC,aAEVpC,EAAU4C,2BAMpB5B,MAAOA,EACP+B,WAvIyB,WAwIvB/C,EAAUgB,MAAQ2B,YAAW,WAC3BK,aAAahD,EAAUgB,OAEvBiC,OAAOC,SAASC,KAAOnD,EAAUY,UAChC,QAqBP,OAjBA,gBAAgB,WACdwC,cAAcpD,EAAUkB,UACxBkC,cAAcpD,EAAUmB,OACxB6B,aAAahD,EAAUgB,UAEzB,gBAAU,WACRhB,EAAUyC,IAAM,EAChBzC,EAAU2B,SAAW,EAErB3B,EAAU+C,aAEV/C,EAAUoB,aAEVpB,EAAU4B,iBAEV5B,EAAU4C,yBAEZ,kBACK,eAAO5C,O,UCjOhB,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAS3B,GAAQ,CAAC,YAAY,qBAE1E,iB,oCCTf,W,2DCAA,W","file":"static/js/chunk-48c88b60.292db9ff.js","sourcesContent":["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!./sunny.vue?vue&type=style&index=0&id=3c0316b5&lang=scss&scoped=true\"","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!./snow.vue?vue&type=style&index=0&id=8e061be6&lang=scss&scoped=true\"","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!./cloud.vue?vue&type=style&index=0&id=ea662cf8&lang=scss&scoped=true\"","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-08590c0a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"weather-box\" }\nconst _hoisted_2 = { class: \"weather\" }\nconst _hoisted_3 = { class: \"weather-top\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"logo\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"/sk/skImage/weather/logo.png\",\n alt: \"\"\n })\n], -1))\nconst _hoisted_5 = { class: \"weather-left\" }\nconst _hoisted_6 = { class: \"b-time\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"北京时间\", -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", null, null, -1))\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"b-line\" }, [\n /*#__PURE__*/_createElementVNode(\"span\"),\n /*#__PURE__*/_createElementVNode(\"span\")\n], -1))\nconst _hoisted_10 = { class: \"b-time\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"首尔时间\", -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", null, null, -1))\nconst _hoisted_13 = { class: \"weather-detail\" }\nconst _hoisted_14 = { class: \"d-top\" }\nconst _hoisted_15 = [\"src\"]\nconst _hoisted_16 = { class: \"d-bottom\" }\nconst _hoisted_17 = { class: \"env-box\" }\nconst _hoisted_18 = { class: \"env-item env-box-bg\" }\nconst _hoisted_19 = { class: \"env-icon\" }\nconst _hoisted_20 = [\"src\"]\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"温度\", -1))\nconst _hoisted_22 = { class: \"env-text\" }\nconst _hoisted_23 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"env-rate\" }, \"℃\", -1))\nconst _hoisted_24 = { class: \"env-item env-box-bg\" }\nconst _hoisted_25 = { class: \"env-icon\" }\nconst _hoisted_26 = [\"src\"]\nconst _hoisted_27 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"湿度\", -1))\nconst _hoisted_28 = { class: \"env-text\" }\nconst _hoisted_29 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"env-rate\" }, \"%\", -1))\nconst _hoisted_30 = { class: \"env-item env-box-bg\" }\nconst _hoisted_31 = { class: \"env-icon\" }\nconst _hoisted_32 = [\"src\"]\nconst _hoisted_33 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"甲醛\", -1))\nconst _hoisted_34 = { class: \"env-text\" }\nconst _hoisted_35 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"env-rate\" }, \"mg/m³\", -1))\nconst _hoisted_36 = { class: \"env-item env-box-bg\" }\nconst _hoisted_37 = { class: \"env-icon\" }\nconst _hoisted_38 = [\"src\"]\nconst _hoisted_39 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"PM2.5\", -1))\nconst _hoisted_40 = { class: \"env-text\" }\nconst _hoisted_41 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"env-rate\" }, \"μg/m³\", -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_sunny = _resolveComponent(\"sunny\")!\n const _component_ran = _resolveComponent(\"ran\")!\n const _component_snow = _resolveComponent(\"snow\")!\n const _component_clound = _resolveComponent(\"clound\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.weatherKey == 'sunny')\n ? (_openBlock(), _createBlock(_component_sunny, { key: 0 }))\n : _createCommentVNode(\"\", true),\n (_ctx.weatherKey == 'rain')\n ? (_openBlock(), _createBlock(_component_ran, { key: 1 }))\n : _createCommentVNode(\"\", true),\n (_ctx.weatherKey == 'snow')\n ? (_openBlock(), _createBlock(_component_snow, { key: 2 }))\n : _createCommentVNode(\"\", true),\n (_ctx.weatherKey == 'clound')\n ? (_openBlock(), _createBlock(_component_clound, { key: 3 }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"span\", null, [\n _createTextVNode(_toDisplayString(_ctx.nowTime), 1),\n _hoisted_8\n ])\n ]),\n _hoisted_9,\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"span\", null, [\n _createTextVNode(_toDisplayString(_ctx.sTime), 1),\n _hoisted_12\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"img\", {\n src: '/sk/skImage/weather/' + _ctx.logonIcon,\n alt: \"\"\n }, null, 8, _hoisted_15),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.temperature) + \" ℃\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.nowDate), 1),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.week), 1)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"img\", {\n src: \n _ctx.weatherKey == 'sunny'\n ? '/sk/skImage/weather/温度.png'\n : '/sk/skImage/weather/温度.png'\n ,\n alt: \"\"\n }, null, 8, _hoisted_20),\n _hoisted_21\n ]),\n _createElementVNode(\"div\", _hoisted_22, _toDisplayString(_ctx.envObj.Tdb), 1),\n _hoisted_23\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"img\", {\n src: \n _ctx.weatherKey == 'sunny'\n ? '/sk/skImage/weather/湿度.png'\n : '/sk/skImage/weather/湿度.png'\n ,\n alt: \"\"\n }, null, 8, _hoisted_26),\n _hoisted_27\n ]),\n _createElementVNode(\"div\", _hoisted_28, _toDisplayString(_ctx.envObj.RH), 1),\n _hoisted_29\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"img\", {\n src: \n _ctx.weatherKey == 'sunny'\n ? '/sk/skImage/weather/甲醛.png'\n : '/sk/skImage/weather/甲醛.png'\n ,\n alt: \"\"\n }, null, 8, _hoisted_32),\n _hoisted_33\n ]),\n _createElementVNode(\"div\", _hoisted_34, _toDisplayString(_ctx.envObj.HCHO), 1),\n _hoisted_35\n ]),\n _createElementVNode(\"div\", _hoisted_36, [\n _createElementVNode(\"div\", _hoisted_37, [\n _createElementVNode(\"img\", {\n src: \n _ctx.weatherKey == 'sunny'\n ? '/sk/skImage/weather/pm.png'\n : '/sk/skImage/weather/pm.png'\n ,\n alt: \"\"\n }, null, 8, _hoisted_38),\n _hoisted_39\n ]),\n _createElementVNode(\"div\", _hoisted_40, _toDisplayString(_ctx.envObj.PM2d5), 1),\n _hoisted_41\n ])\n ])\n ])\n ]))\n}","\n \n \n \n \n ","import { render } from \"./rain.vue?vue&type=template&id=fe0351b0&scoped=true\"\nimport script from \"./rain.vue?vue&type=script&lang=js\"\nexport * from \"./rain.vue?vue&type=script&lang=js\"\n\nimport \"./rain.vue?vue&type=style&index=0&id=fe0351b0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fe0351b0\"]])\n\nexport default __exports__","\n \n \n \n \n ","import { render } from \"./cloud.vue?vue&type=template&id=ea662cf8&scoped=true\"\nimport script from \"./cloud.vue?vue&type=script&lang=js\"\nexport * from \"./cloud.vue?vue&type=script&lang=js\"\n\nimport \"./cloud.vue?vue&type=style&index=0&id=ea662cf8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ea662cf8\"]])\n\nexport default __exports__","\n \n \n \n \n ","import { render } from \"./snow.vue?vue&type=template&id=8e061be6&scoped=true\"\nimport script from \"./snow.vue?vue&type=script&lang=js\"\nexport * from \"./snow.vue?vue&type=script&lang=js\"\n\nimport \"./snow.vue?vue&type=style&index=0&id=8e061be6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8e061be6\"]])\n\nexport default __exports__","\n \n \n \n \n ","import { render } from \"./sunny.vue?vue&type=template&id=3c0316b5&scoped=true\"\nimport script from \"./sunny.vue?vue&type=script&lang=js\"\nexport * from \"./sunny.vue?vue&type=script&lang=js\"\n\nimport \"./sunny.vue?vue&type=style&index=0&id=3c0316b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c0316b5\"]])\n\nexport default __exports__","\nimport $ from \"jquery\";\nimport { nextTick } from \"vue\";\n// import { getWeather } from \"@/apis/envmonitor.ts\";\nimport {\n defineComponent,\n reactive,\n toRefs,\n onMounted,\n onBeforeUnmount,\n} from \"vue\";\nimport ran from \"./rain.vue\"; // 雨\nimport clound from \"./cloud.vue\"; // 云\nimport snow from \"./snow.vue\"; // 雪\nimport sunny from \"./sunny.vue\"; // 晴\nimport { getWeather, queryEnvCurrent } from \"@/apis/envmonitor\";\nimport { formatEnergyDate, getWeek } from \"@/utils\";\nimport { useRouter } from \"vue-router\";\nexport default defineComponent({\n components: {\n ran,\n clound,\n snow,\n sunny,\n },\n beforeRouteEnter(to, from, next) {\n console.log(\"to===\");\n console.log(from);\n if (from.name == \"tiantan\") {\n next();\n } else {\n next((e: any) => {\n e.pathUrl = \"/sk/index\";\n });\n }\n },\n setup(props) {\n const router = useRouter();\n let weatherData: any = [\n {\n text: \"云\",\n type: \"clound\",\n logonIcon: \"阴.png\",\n },\n {\n text: \"雨\",\n type: \"rain\",\n logonIcon: \"雨.png\",\n },\n {\n text: \"雪\",\n type: \"snow\",\n logonIcon: \"雪.png\",\n },\n {\n text: \"晴\",\n type: \"sunny\",\n logonIcon: \"晴.png\",\n },\n ];\n let times: any = null;\n let currentData: any = [];\n let envObj: any = {\n Tdb: \"0\", // 温度\n RH: \"0\", //湿度\n HCHO: \"0\", //甲醛\n PM2d5: \"0\",\n };\n let intevell: any = null;\n let timer: any = null;\n const proxyData = reactive({\n weatherData: weatherData,\n envObj: envObj,\n temperature: \"\",\n weatherKey: \"\",\n pathUrl: \"/sk/home\",\n logonIcon: \"阴.png\",\n currentData: currentData,\n nowTime: formatEnergyDate()[2],\n sTime: formatEnergyDate(2)[2],\n nowDate: formatEnergyDate()[0],\n intevell: intevell,\n week: getWeek(),\n // 设置现在时间\n setNowDate() {\n proxyData.intevell = setInterval(() => {\n let timeArr: any = formatEnergyDate();\n proxyData.nowTime = timeArr[2];\n proxyData.nowDate = timeArr[0];\n let timeArr1: any = formatEnergyDate(2);\n proxyData.sTime = timeArr1[2];\n proxyData.week = getWeek();\n }, 1000);\n },\n // 设置天气key的值\n setWeatherKey(content: any) {\n if (content.code <= 8) {\n proxyData.weatherKey = \"sunny\";\n proxyData.logonIcon = \"晴.png\";\n } else if (content.code >= 10 && content.code <= 19) {\n proxyData.weatherKey = \"rain\";\n proxyData.logonIcon = \"雨.png\";\n } else if (content.code >= 20 && content.code <= 25) {\n proxyData.weatherKey = \"snow\";\n proxyData.logonIcon = \"雪.png\";\n } else {\n if (content.code == \"38\") {\n proxyData.weatherKey = \"sunny\";\n proxyData.logonIcon = \"晴.png\";\n } else {\n proxyData.weatherKey = \"clound\";\n proxyData.logonIcon = \"阴.png\";\n }\n }\n },\n weathNum: 0,\n // 获取天气数据\n getWeatherData() {\n // debugger\n proxyData.weathNum = proxyData.weathNum + 1;\n getWeather()\n .then((res) => {\n let resResult: any = res || {};\n let content: any = resResult.content || {};\n if (proxyData.weathNum < 10) {\n if (\n resResult.result == \"success\" &&\n JSON.stringify(content) != \"{}\"\n ) {\n proxyData.temperature = content.temperature;\n proxyData.setWeatherKey(content);\n } else {\n proxyData.getWeatherData();\n }\n } else {\n proxyData.setWeatherKey(8);\n }\n })\n .catch(() => {\n if (proxyData.weathNum < 10) {\n proxyData.getWeatherData();\n } else {\n proxyData.setWeatherKey(8);\n }\n });\n },\n timer: timer,\n // 设置环境数据\n setEnvData() {\n proxyData.envObj = {\n Tdb: \"0\", // 温度\n RH: \"0\", //湿度\n HCHO: \"0\", //甲醛\n PM2d5: \"0\",\n };\n proxyData.currentData.map((item: any) => {\n if (item.code == \"Tdb\") {\n item.data = item.data ? item.data.toFixed(1) : \"--\";\n } else if (item.code == \"RH\") {\n item.data = item.data ? item.data.toFixed(0) : \"--\";\n } else if (item.code == \"PM2d5\") {\n item.data = item.data ? item.data.toFixed(0) : \"--\";\n } else {\n item.data = item.data ? item.data.toFixed(2) : \"--\";\n }\n\n proxyData.envObj[item.code] = item.data;\n });\n },\n num: 0,\n setTimerPage() {\n proxyData.timer = setTimeout(() => {}, 2000);\n },\n // 获取环境数据\n queryEnvCurrentPage() {\n proxyData.num = proxyData.num + 1;\n queryEnvCurrent()\n .then((res) => {\n let resResult: any = res;\n if (resResult.result == \"success\") {\n proxyData.currentData = resResult.data || [];\n } else {\n proxyData.currentData = [];\n }\n if (proxyData.num < 10) {\n if (proxyData.currentData && proxyData.currentData.length) {\n proxyData.setEnvData();\n } else {\n proxyData.queryEnvCurrentPage();\n }\n } else {\n }\n })\n .catch((error: any) => {\n if (proxyData.num < 10) {\n if (proxyData.currentData && proxyData.currentData.length) {\n proxyData.setEnvData();\n } else {\n proxyData.queryEnvCurrentPage();\n }\n } else {\n }\n });\n },\n times: times,\n changePage() {\n proxyData.times = setTimeout(() => {\n clearTimeout(proxyData.times);\n // router.push({ path: \"/home\" });\n window.location.href = proxyData.pathUrl;\n }, 300000);\n // 300000\n },\n });\n onBeforeUnmount(() => {\n clearInterval(proxyData.intevell);\n clearInterval(proxyData.timer);\n clearTimeout(proxyData.times);\n });\n onMounted(() => {\n proxyData.num = 0;\n proxyData.weathNum = 0;\n // 页面跳转修改\n proxyData.changePage();\n // 设置当前时间\n proxyData.setNowDate();\n // 获取天气数据\n proxyData.getWeatherData();\n // 获取环境数据\n proxyData.queryEnvCurrentPage();\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=08590c0a&scoped=true&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=08590c0a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagaclound-sagacare-sk/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-08590c0a\"]])\n\nexport default __exports__","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!./index.vue?vue&type=style&index=0&id=08590c0a&lang=scss&scoped=true\"","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!./rain.vue?vue&type=style&index=0&id=fe0351b0&lang=scss&scoped=true\""],"sourceRoot":""}