diff --git a/ant-design-vue-jeecg/src/views/cms/home.vue b/ant-design-vue-jeecg/src/views/cms/home.vue index 61e20cf..1d6ed03 100644 --- a/ant-design-vue-jeecg/src/views/cms/home.vue +++ b/ant-design-vue-jeecg/src/views/cms/home.vue @@ -3,12 +3,12 @@
- - + +
-
{{obj.name}}
+
{{ obj.name }}
MORE
@@ -20,7 +20,7 @@ @click="goToDetail(item)" >
{{ item.title }}
-
{{ item.publishTime === undefined ? "" :item.publishTime.substr(0,10)}}
+
{{ item.publishTime === undefined ? "" : item.publishTime.substr(0, 10) }}
@@ -29,17 +29,17 @@

课程体系

全面落实立德树人根本任务,CDIO工程教育理念

- +

专业目标

全面落实立德树人根本任务,CDIO工程教育理念

- +

毕业要求

适应产业与社会变革的国际化应用型人才应具备的能力

- + @@ -51,7 +51,7 @@ import {getAction} from "../../api/manage"; export default { name: "home", - components: { Header, Footer }, + components: {Header, Footer}, data() { return { trendsList: [ @@ -71,20 +71,20 @@ export default { date: "2023.01.11", }, ], - obj:{}, - url:{ - list:"/cms/front/getColumnList", - detail:"/cms/front/getArticleListByColumn" + obj: {}, + url: { + list: "/cms/front/getColumnList", + detail: "/cms/front/getArticleListByColumn" } }; }, mounted() { getAction(this.url.list).then((res) => { - this.obj =res.result[0] - getAction(this.url.detail,{columnId:this.obj.id}).then((res) => { - this.trendsList = res.result.records - } - ) + this.obj = res.result[0] + getAction(this.url.detail, {columnId: this.obj.id}).then((res) => { + this.trendsList = res.result.records + } + ) } ), this.playBySeconds(6)//从第六秒开始 @@ -92,9 +92,9 @@ export default { methods: { //设置播放点,续播 - playBySeconds (num) { - if (num && document.getElementById ('videoPlayer')) { - let myVideo = document.getElementById ('videoPlayer'); + playBySeconds(num) { + if (num && document.getElementById('videoPlayer')) { + let myVideo = document.getElementById('videoPlayer'); myVideo.currentTime = num; } }, @@ -117,24 +117,29 @@ export default {