diff --git a/package-lock.json b/package-lock.json index cfb0c14..a8596d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,8 +17,10 @@ "form-data": "^4.0.0", "fs": "^0.0.1-security", "json-server": "^0.17.3", + "prismjs": "^1.29.0", "vue": "^2.6.14", "vue-cookie": "^1.1.4", + "vue-prism-editor": "^1.3.0", "vue-router": "^3.5.1", "vuex": "^3.6.2", "vxe-table": "^3.6.13" @@ -11540,6 +11542,14 @@ "renderkid": "^3.0.0" } }, + "node_modules/prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmmirror.com/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", + "engines": { + "node": ">=6" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -14455,6 +14465,17 @@ "node": ">=8" } }, + "node_modules/vue-prism-editor": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/vue-prism-editor/-/vue-prism-editor-1.3.0.tgz", + "integrity": "sha512-54RfgtMGRMNr9484zKMOZs1wyLDR6EfFylzE2QrMCD9alCvXyYYcS0vX8oUHh+6pMUu6ts59uSN9cHglpU2NRQ==", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "vue": "^2.6.11" + } + }, "node_modules/vue-property-decorator": { "version": "8.5.1", "resolved": "https://registry.npmmirror.com/vue-property-decorator/-/vue-property-decorator-8.5.1.tgz", @@ -24155,6 +24176,11 @@ "renderkid": "^3.0.0" } }, + "prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmmirror.com/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==" + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -26420,6 +26446,12 @@ } } }, + "vue-prism-editor": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/vue-prism-editor/-/vue-prism-editor-1.3.0.tgz", + "integrity": "sha512-54RfgtMGRMNr9484zKMOZs1wyLDR6EfFylzE2QrMCD9alCvXyYYcS0vX8oUHh+6pMUu6ts59uSN9cHglpU2NRQ==", + "requires": {} + }, "vue-property-decorator": { "version": "8.5.1", "resolved": "https://registry.npmmirror.com/vue-property-decorator/-/vue-property-decorator-8.5.1.tgz", diff --git a/package.json b/package.json index 28796bd..5a8334f 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,10 @@ "form-data": "^4.0.0", "fs": "^0.0.1-security", "json-server": "^0.17.3", + "prismjs": "^1.29.0", "vue": "^2.6.14", "vue-cookie": "^1.1.4", + "vue-prism-editor": "^1.3.0", "vue-router": "^3.5.1", "vuex": "^3.6.2", "vxe-table": "^3.6.13" diff --git a/src/components/Home/Home.vue b/src/components/Home/Home.vue index 3f9420c..39d4d9f 100644 --- a/src/components/Home/Home.vue +++ b/src/components/Home/Home.vue @@ -126,8 +126,8 @@ - - 总共: + + 总共: {{tags.length}} @@ -159,7 +159,7 @@ export default { loading: false, loginDialogVisible: false, manageCategoryVisible:false, - tags:null, + tags:[], }; }, mounted() { @@ -202,7 +202,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/selectLastByCate', + url: '/api/selectLastByCate', // URL 中的查询参数 params: { num: "0", @@ -216,7 +216,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/selectMostStar', + url: '/api/selectMostStar', // URL 中的查询参数 params: { num: index, @@ -248,7 +248,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/selectLastByCate', + url: '/api/selectLastByCate', // URL 中的查询参数 params: { num: index, @@ -274,7 +274,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/retLabel', + url: '/api/retLabel', // URL 中的查询参数 params: { } @@ -289,7 +289,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/userNum', + url: '/api/userNum', // URL 中的查询参数 params: { } @@ -302,7 +302,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/countNum', + url: '/api/countNum', // URL 中的查询参数 params: { diff --git a/src/components/Monthly/MonthlyDetail.vue b/src/components/Monthly/MonthlyDetail.vue index a8a1505..b92648d 100644 --- a/src/components/Monthly/MonthlyDetail.vue +++ b/src/components/Monthly/MonthlyDetail.vue @@ -239,11 +239,11 @@ export default { // this.$refs.NextBtn.style.display = "none" // } }, - test(){ - console.log(this.MonType); - console.log(this.MonTypePro); - console.log(this.MonList); - }, + // test(){ + // console.log(this.MonType); + // console.log(this.MonTypePro); + // console.log(this.MonList); + // }, // 月刊总数: getMonely(){ var that = this; @@ -273,7 +273,7 @@ export default { Object.keys(that.MonList).forEach(key=>{ that.MonTypePro.push(that.MonList[key]); }) - console.log(that.MonList); + // console.log(that.MonTypePro); }) }, // 月刊详情页面跳转 diff --git a/src/components/OneFile/OneFile.vue b/src/components/OneFile/OneFile.vue index 33f7008..eda86b1 100644 --- a/src/components/OneFile/OneFile.vue +++ b/src/components/OneFile/OneFile.vue @@ -19,9 +19,10 @@ + style="cursor: pointer;width: 100%;box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);border-radius: 10px;border: none"> + width="100"> - 「OneFile」:一个开源项目,在这里你可以找到有趣运行简单的程序。同时它也是一个编程挑战,你也可以提交一个文件接受挑战。点击加入 OneFile 编程挑战,一个文件而已就写点有趣的代码吧! + 「OneFile」:一个开源项目,在这里你可以找到有趣运行简单的程序。同时它也是一个编程挑战,你也可以提交一个文件接受挑战。快点加入OneFile 编程挑战,一个文件而已就写点有趣的代码吧! + + + 提交 + + + + + + + + + + + + + + + + + + + + 提交 + + + + @@ -55,36 +90,91 @@ diff --git a/src/components/OneFile/OneFileDetail.vue b/src/components/OneFile/OneFileDetail.vue index 907d71e..505f3ba 100644 --- a/src/components/OneFile/OneFileDetail.vue +++ b/src/components/OneFile/OneFileDetail.vue @@ -13,11 +13,43 @@ - - + + + + {{oneFileName}} : + + + {{description}} + + + + + 发布于: + {{userName}} + · + 主语言 {{language}} + · + {{formatNumber(lookNum)}} + 次查看 + + + 访问 + 复制 + + - + + @@ -30,20 +62,112 @@ @@ -60,4 +184,19 @@ export default { border-right: none; } } +/* required class */ +::v-deep .my-editor { + background: transparent; + color: #ccc; + + font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace; + font-size: 14px; + line-height: 1.5; + padding: 5px; +} + +/* optional */ +::v-deep .prism-editor__textarea:focus { + outline: none; +} \ No newline at end of file diff --git a/src/components/Project/ProjectDetail.vue b/src/components/Project/ProjectDetail.vue index fc18531..83c2c9f 100644 --- a/src/components/Project/ProjectDetail.vue +++ b/src/components/Project/ProjectDetail.vue @@ -174,7 +174,7 @@ + > 发布 @@ -724,7 +724,11 @@ export default { that.github.name=res.data.name; that.github.default_branch=res.data.default_branch; that.github.avatar_url=res.data.owner.avatar_url; - that.saveGithubInfo(); + if(that.$route.query.id){ + that.saveGithubInfo(); + }else{ + return false; + } return true; }else{ return false; diff --git a/src/components/System/AdminHome.vue b/src/components/System/AdminHome.vue index 50bf876..156d61c 100644 --- a/src/components/System/AdminHome.vue +++ b/src/components/System/AdminHome.vue @@ -26,7 +26,7 @@ - + @@ -156,17 +156,10 @@ - - - - - - - - + + - @@ -183,10 +176,7 @@ Vue.prototype.$echarts = echarts; export default { data() { return { - Myechart1:'', - Myechart2:'', - Myoption1:{}, - Myoption2:{}, + activeName: 'first', userTotal:null, projectTotal:null, loginTime:'', @@ -194,33 +184,20 @@ export default { CategoryTotal:'', CommentTotal:'', AdminTotal:'', - // 日期目录: - datecate:[], - // 月份目录: - Moncate:[], - // 年份目录: - Yearcate:[], - // 日期折线单元: - dateLine:[], - // 月份折线单元: - monLine:[], - // 年份折线单元: - yearLine:[], + date:[], + dateNum:[], + Month:[], + MonthNum:[], + Year:[], + YearNum:[], + categoryArray:[], } }, methods: { - initEchart(){ - // var that = this; - // that.Myechart1 = that.$echarts.init(that.$refs.echart1); - // that.Myechart2 = that.$echarts.init(that.$refs.echart2); - }, - test(){ - this.getProjectByTime(); - }, getAdminLoginTime(){ var that=this; axios({ @@ -240,7 +217,7 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'http://localhost:8082/helloGithub_war_exploded/userNum', + url: '/api/userNum', // URL 中的查询参数 params: { } @@ -259,7 +236,6 @@ export default { } }).then((res)=>{ that.projectTotal=res.data; - console.log(that.projectTotal); }); }, getArticleTotal(){ @@ -320,121 +296,261 @@ export default { method: 'post', // 请求的地址 url: 'http://localhost:8082/helloGithub_war_exploded/retProjectByTime', - // URL 中的查询参数 - params: { - } }).then((res)=>{ - console.log(res); that.date=res.data.Date; that.Month=res.data.Month; that.Year=res.data.Year; - console.log(that.date); - for(let i=0;i{ + that.eChart2(that.date,'echart2'); + },1000); + + + }); }, - eChartPic1(){ - // 按日期折线图: - var that = this; - that.Myoption1 = { - //dataZoom-inside 内置型数据区域缩放组件 所谓内置 1平移:在坐标系中滑动拖拽进行数据区域平移。2缩放:PC端:鼠标在坐标系范围内滚轮滚动(MAC触控板类同;移动端:在移动端触屏上,支持两指滑动缩放。 - dataZoom: [{ - type: 'inside', //1平移 缩放 - throttle: '50', //设置触发视图刷新的频率。单位为毫秒(ms)。 - minValueSpan: 6, //用于限制窗口大小的最小值,在类目轴上可以设置为 5 表示 5 个类目 - start: 1, //数据窗口范围的起始百分比 范围是:0 ~ 100。表示 0% ~ 100%。 - end: 50, //数据窗口范围的结束百分比。范围是:0 ~ 100。 - zoomLock: true, //如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 - }], - // 主要用来控制图表四周留白 - grid: { - left: '15%', - top: '10%', - }, - // 提示框组件 + eChart2(Date,id){ + var myChart = echarts.init(document.getElementById(id)); + + var xData=[],yData=[]; + Date.map(function (a) { + xData.push(a.date); + yData.push(a.num); + }); + var option = { tooltip: { - trigger: 'axis', //坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。 - backgroundColor: '#377CFF', //提示框浮层的背景颜色。 - axisPointer: { //去掉移动的指示线 - type: 'none' - }, - // 自定义提示框内容 - formatter: function (params) { - var text = params[0].data.date + ': ' + params[0].data.value - return text; - } + trigger: 'axis' }, - //直角坐标系 grid 中的 x 轴, - xAxis: { - type: 'category', //'category' 类目轴,适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。 - // 坐标轴轴线相关设置 + xAxis: [{ + type: 'category', + data: xData, axisLine: { lineStyle: { - color: '#E5E5E5', // 坐标轴线线的颜色。 + color: "#999" + } + } + }], + yAxis: [{ + type: 'value', + splitNumber: 4, + splitLine: { + lineStyle: { + type: 'dashed', + color: '#DDD' } }, - // 坐标轴刻度标签(类目,简单说就是x轴上的内容)的相关设置 - axisLabel: { - // 是否显示坐标刻度标签(这了指是否显示x轴上的月份) - show: true, - // 标签文字的颜色 - color: '#999' - }, - //x轴刻度线设置 - axisTick: { - "show": false - }, - // 类目数据,在类目轴(type: 'category')中有效。 - data: that.datecate, - }, - //直角坐标系 grid 中的 y 轴, - yAxis: { - type: 'value', //'value' 数值轴,适用于连续数据。 - // 坐标轴轴线相关设置 axisLine: { - show: false //y轴线消失 + show: false, + lineStyle: { + color: "#333" + }, }, - // 坐标轴刻度标签(类目,简单说就是x轴上的内容)的相关设置 - axisLabel: { - show: true, - // 标签文字的颜色 - color: '#999' + nameTextStyle: { + color: "#999" }, - //y轴刻度线设置 - axisTick: { - "show": false - }, - splitNumber: 5, //坐标轴的分割段数,需要注意的是这个分割段数只是个预估值,最后实际显示的段数会在这个基础上根据分割后坐标轴刻度显示的易读程度作调整.在类目轴中无效。 - }, - series: that.dateLine, - }; - that.Myechart1.setOption(that.Myoption1,true); - // 图表大小变动从新渲染,动态自适应 - }, - eChartPic2(){ + splitArea: { + show: false + } + }], + series: [{ + name: '提交项目数量', + type: 'line', + data: yData, + lineStyle: { + normal: { + width: 8, + color: { + type: 'linear', + + colorStops: [{ + offset: 0, + color: '#A9F387' // 0% 处的颜色 + }, { + offset: 1, + color: '#48D8BF' // 100% 处的颜色 + }], + globalCoord: false // 缺省为 false + }, + shadowColor: 'rgba(72,216,191, 0.3)', + shadowBlur: 10, + shadowOffsetY: 20 + } + }, + itemStyle: { + normal: { + color: '#fff', + borderWidth: 10, + /*shadowColor: 'rgba(72,216,191, 0.3)', + shadowBlur: 100,*/ + borderColor: "#A9F387" + } + }, + smooth: true + }] + }; + myChart.setOption(option); + //图表大小变动从新渲染,动态自适应 + window.addEventListener("resize", function () { + myChart.resize(); + }); + myChart.resize({ + width: 900, + height: 300 + }); + + + }, + + getCategoryByProject(){ + var that=this; + axios({ + method: 'post', + // 请求的地址 + url: 'http://localhost:8082/helloGithub_war_exploded/retProjectNumByCategory', + }).then((res)=>{ + that.categoryArray=res.data; + var xData=[],yData=[]; + that.categoryArray.map(function (a) { + xData.push(a.categoryName); + yData.push(a.num); + }); + setTimeout(()=>{ + that.echart_Pie(xData,yData,'echart1'); + },1000) + + }); + }, + echart_Pie(xData, yData, id) { + var chartDom = document.getElementById(id); + var myChart = echarts.init(chartDom); + + + var dataName = xData; + + var dataName2 = xData; + var value = yData + var dataarr = [] + var max = value[0]; + var dataarr2 = [] + value.forEach(function (ele, index) { + if (ele > max) { + max = ele; + } + dataarr.push({ + value: ele, + name: dataName[index] + }) + dataarr2.push({ + value: ele, + name: dataName2[index] + }) + }) + + var option = { + // backgroundColor: '#424956', + tooltip: { + trigger: 'item', + formatter: "{a} {b}: {c} ({d}%)", + + }, + legend: { + + orient: 'vertical', + x: 'right', + y: 'middle', + itemWidth: 20, + itemGap: 10, + itemHeight: 14, + align: 'left', + + data: dataName, + textStyle: { + color: '#00000', + fontSize: 12 + } + }, + series: [{ + name: '统计', + type: 'pie', + radius: ['25%', '65%'], + center: ['50%', '50%'], + color: [ + '#2CEDED', + '#7049F0', + '#B347FF', + '#E70E65', + '#FF714A', + '#F6B768', + '#B0DF5D', + '#FC7DBC', + '#0A9FFD' + ], + + labelLine: { + normal: { + show: true, + length: 10, + length2: 24 + } + }, + data: dataarr + }, { + name: '统计', + type: 'pie', + radius: ['25%', '65%'], + center: ['50%', '50%'], + color: [ + 'transparent', + 'transparent', + 'transparent', + 'transparent', + 'transparent', + 'transparent', + 'transparent', + 'rgba(252,125,188,0.5)', + 'transparent' + ], + label: { + normal: { + show: false + }, + + }, + labelLine: { + normal: { + show: false, + } + }, + data: dataarr2, + zlevel: 2 + }] + }; + myChart.clear(); + option && myChart.setOption(option); + //图表大小变动从新渲染,动态自适应 + window.addEventListener("resize", function () { + myChart.resize(); + }); + // myChart.resize({ + // width: 449, + // height: 265 + // }); + }, - } }, // 初始化Echart mounted() { - this.getUserTotal(); - this.getProjectTotal(); - this.getAdminLoginTime(); - this.getArticleTotal(); - this.getCommentTotal(); - this.getAdminTotal(); - this.getCategoryTotal(); - this.getProjectByTime(); - this.Myechart1 = this.$echarts.init(this.$refs.echart1); - this.Myechart2 = this.$echarts.init(this.$refs.echart2); - this.eChartPic1(); + this.getUserTotal(); + this.getProjectTotal(); + this.getAdminLoginTime(); + this.getArticleTotal(); + this.getCommentTotal(); + this.getAdminTotal(); + this.getCategoryTotal(); + this.getProjectByTime(); + this.getCategoryByProject(); + + } } diff --git a/src/components/System/AdminLogin.vue b/src/components/System/AdminLogin.vue index 83467bb..8550343 100644 --- a/src/components/System/AdminLogin.vue +++ b/src/components/System/AdminLogin.vue @@ -65,10 +65,10 @@ export default { this.imageUrl = "http://localhost:8082/helloGithub_war_exploded/VerifycodeServlet?" + new Date().getTime(); }, submit(formName){ + console.log(this.login); var _this=this; this.$refs[formName].validate((valid) => { if (valid) { - //调用方法提交 axios({ method: 'post', @@ -81,6 +81,7 @@ export default { code: this.login.code, } }).then(function (res) { + console.log(res); if (res.data.code === 200) { Vue.prototype.$notify({ title: '成功', @@ -89,9 +90,12 @@ export default { offset: 50 }); _this.$cookie.set('adminName',_this.login.username); - _this.$router.push({ - path:'/systemIndex', - }) + setTimeout(()=>{ + _this.$router.push({ + path:'/systemIndex', + }) + },1000); + } else { Vue.prototype.$notify.error({ title: '错误', diff --git a/src/components/System/Manage/categoryManage.vue b/src/components/System/Manage/categoryManage.vue index 5ff16c6..4118231 100644 --- a/src/components/System/Manage/categoryManage.vue +++ b/src/components/System/Manage/categoryManage.vue @@ -5,6 +5,9 @@ 标签管理 + + 新增 + @@ -72,10 +75,39 @@ + + + + + + + + + + + + + 有效 + 无效 + + + + + + 编辑 + 添加 + + + + + + + - - - @@ -92,16 +124,14 @@ export default { data(){ return{ isEdit:true, + openAddCategory:false, List:[], dialogVisible:false, form:{ - articleId:'', - userId: '', - articleContent: '', - articleTitle: '', - articleIco: '', - readCount: '', - isValid: '', + categoryId:'', + category:'', + categoryName:'', + isValid:'', } } }, @@ -109,6 +139,9 @@ export default { this.GetData(); }, methods:{ + openAddCategoryFun(){ + this.openAddCategory=true; + }, handleChangeStatus($event, id){ if ($event === 1) { // 这里判断一下 // 启用 @@ -199,6 +232,7 @@ export default { this.GetData(); // 后关闭 this.dialogVisible = false; + this.openAddCategory=false; this.isEdit=true; }, editForm(){ @@ -291,6 +325,40 @@ export default { } }); }, + addCategory(){ + var _this = this; + //调用方法提交 + axios({ + method: 'post', + // 请求的地址 + url: 'http://localhost:8082/helloGithub_war_exploded/insertCategory', + // URL 中的查询参数 + params: { + url: this.form.category, + isValid: this.form.isValid, + name: this.form.categoryName, + } + }).then(function (res) { + if (res.data.code === 500) { + Vue.prototype.$notify.error({ + title: '错误', + message: res.data.msg, + offset: 50 + }); + + } else { + _this.isEdit=true; + _this.dialogVisible = false; + _this.GetData(); + Vue.prototype.$notify({ + title: '成功', + message: ('i', {style: 'color: teal'}, "更新成功!"), + type: 'success', + offset: 50 + }); + } + }); + }, } } diff --git a/src/components/System/Manage/oneFileManage.vue b/src/components/System/Manage/oneFileManage.vue index 8873565..41f31a2 100644 --- a/src/components/System/Manage/oneFileManage.vue +++ b/src/components/System/Manage/oneFileManage.vue @@ -8,6 +8,7 @@ @@ -86,7 +87,7 @@ :inactive-value="0" active-color="#13ce66" inactive-color="#ff4949" - @change="handleChangeStatus($event,scope.row.userId)" + @change="handleChangeStatus($event,scope.row.id)" > @@ -105,7 +106,7 @@ - - + - - + + - + @@ -171,9 +173,9 @@ export default { List:[], dialogVisible:false, form:{ - id:'', - userId:'', - lookNum:'', + id:null, + userId:null, + lookNum:null, oneFileName:'', content:'', language:'', @@ -202,7 +204,7 @@ export default { url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_onefile', // URL 中的查询参数 params: { - articleId:id, + id:id, isValid:$event } }).then(function (res) { @@ -237,7 +239,7 @@ export default { url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_onefile', // URL 中的查询参数 params: { - articleId:id, + id:id, isValid:$event } }).then(function (res) { @@ -269,7 +271,6 @@ export default { } }).then((res)=>{ that.List = res.data; - console.log(that.List); }) // /selectAllArticleByadmin }, @@ -341,14 +342,14 @@ export default { axios({ method: 'post', // 请求的地址 - url: 'api/updateFileByAdmin', + url: 'http://localhost:8082/helloGithub_war_exploded/updateFileByAdmin', // URL 中的查询参数 params: { id: this.form.id, userId: this.form.userId, lookNum: this.form.lookNum, oneFileName: this.form.oneFileName, - Content: this.form.content, + // Content: '', language: this.form.language, url: this.form.url, isValid: this.form.isValid, @@ -377,9 +378,9 @@ export default { }, toDetailPage(row){ this.$router.push({ - path:'/ArticleDetail', + path:'/oneFileDetail', query: { - id: row.articleId, + id: row.id, refresh: true }}) } diff --git a/src/components/User/UserInfoPage.vue b/src/components/User/UserInfoPage.vue index 83f012e..8bc24d3 100644 --- a/src/components/User/UserInfoPage.vue +++ b/src/components/User/UserInfoPage.vue @@ -25,8 +25,8 @@ 你是 HelloGitHub 社区的第 {{userId}} 位用户,于 {{creatTime}} 加入。 分享 - {{projectNum}} - 0 + {{projectList.length}} + 0 个开源项目, {{Object.keys(commentList).length}} 0 diff --git a/src/main.js b/src/main.js index eda186f..acd1365 100644 --- a/src/main.js +++ b/src/main.js @@ -28,11 +28,6 @@ Vue.prototype.$cookie = cookie; Vue.config.productionTip = false Vue.use(Element); -import 'xe-utils' -import VXETable from 'vxe-table' -import 'vxe-table/lib/style.css' -Vue.use(VXETable) -Vue.prototype.$VXETable = VXETable new Vue({ router,