mjh 4 years ago
parent
commit
16a9b85ab3

+ 2 - 1
src/App.vue

@@ -10,8 +10,9 @@
 
 import GlobalHeader from "@/components/GlobalHeader";
 import GlobalFooter from "@/components/GlobalFooter";
+
 export default {
-  components: { GlobalFooter, GlobalHeader },
+  components: {GlobalFooter, GlobalHeader},
   created() {
     const that = this;
     if (sessionStorage.token) {

+ 3 - 3
src/views/AuthPage/components/SlideVerifier.vue

@@ -78,8 +78,8 @@ export default {
   },
   computed: {
     style() {
-      const { height, background } = this;
-      return { height, "line-height": height, background };
+      const {height, background} = this;
+      return {height, "line-height": height, background};
     },
   },
   mounted() {
@@ -125,7 +125,7 @@ export default {
         const downX = event.clientX;
         //三、给文档注册鼠标移动事件
         document.onmousemove = (e) => {
-         //1.获取鼠标移动后的水平位置
+          //1.获取鼠标移动后的水平位置
           const moveX = e.clientX;
           //2.得到鼠标水平位置的偏移量(鼠标移动时的位置 - 鼠标按下时的位置)
           let offsetX = moveX - downX;

+ 3 - 3
src/views/CoursePage/CourseDetail.vue

@@ -43,7 +43,7 @@
       <el-divider v-if="isCreator || isCourseSelected"/>
       <!--tab页-->
       <el-card id="tab-main"
-        v-if="isCreator || isCourseSelected"
+               v-if="isCreator || isCourseSelected"
                style="position: relative">
         <el-button type="success"
                    @click="refreshTab"
@@ -252,8 +252,8 @@ export default {
       this.refreshTab();
     },
 
-    refreshTab(){
-      switch (this.tabName){
+    refreshTab() {
+      switch (this.tabName) {
         case "task":
           this.$refs.taskTab.init();
           break;