(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cf4e3"],{"62c4":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"code-main"},[t("div",{staticClass:"code-main-explorer"},[t("x-code-explorer",{staticClass:"file-tree",attrs:{"diff-key":e.diffKey,"theme-id":e.themeId},on:{delLeftFile:e.closeTab}})],1),t("div",{staticClass:"code-main-editor"},[t("x-code-editor")],1)])},a=[],r=(i("e9f5"),i("910d"),i("7d54"),i("2f62")),d=i("5f87"),c={data(){return{themeId:"",diffKey:{key:"",id:0}}},computed:{...Object(r["b"])(["dataArr","number","openFileKey"])},created(){this.themeId=this.$route.params.id,this.number&&this.number!==this.themeId&&(this.dataArr=[],Object(d["f"])(JSON.stringify([])))},methods:{closeTab(e){let t=this.dataArr,i=this.tabName;i===e&&t.forEach((s,a)=>{if(s.key===e){let e=t[a+1]||t[a-1];e&&(i=e.key)}}),this.tabName=i,this.$store.commit("SET_DATA_ARR",t.filter(t=>t.key!==e));let s=JSON.parse(Object(d["b"])());s[this.themeId]=s[this.themeId].filter(t=>t.key!==e),Object(d["f"])(JSON.stringify(s)),this.openFileKey===e&&this.$store.commit("SET_OPEN_FILE_KEY",""),this.$message({message:"删除文件成功！",type:"success",duration:1e3})}}},o=c,h=i("2877"),l=Object(h["a"])(o,s,a,!1,null,null,null);t["default"]=l.exports}}]);