Browse Source

修改ui包和 增加bookview返回

秦鹏 3 năm trước cách đây
mục cha
commit
2b391a5481
2 tập tin đã thay đổi với 10 bổ sung3 xóa
  1. 1 1
      package.json
  2. 9 2
      src/views/courseView.vue

+ 1 - 1
package.json

@@ -18,7 +18,7 @@
     "@ztree/ztree_v3": "^3.5.46",
     "awe-dnd": "^0.3.4",
     "axios": "0.18.1",
-    "book-ui": "file:../GCLS-Book-question-ui/book-ui-0.1.12.tgz",
+    "book-ui": "file:../book-ui-0.1.12.tgz",
     "cnchar": "^3.0.1",
     "cnchar-all": "^3.0.1",
     "cnchar-order": "^3.0.1",

+ 9 - 2
src/views/courseView.vue

@@ -4,8 +4,13 @@
       <Header />
       <Nav nav-value="书籍预览" />
     </template>
-    <template>
+    <template v-else>
       <div class="bookname">
+        <i
+          style="cursor: pointer; margin-right: 5px"
+          class="el-icon-arrow-left"
+          @click="back"
+        ></i>
         {{ name }}
       </div>
     </template>
@@ -127,6 +132,9 @@ export default {
     _this.name = this.$route.query.name;
   },
   methods: {
+    back(){
+       this.$router.go(-1)
+    },
     changeTreeData(val) {
       this.FatherTreeData = JSON.parse(JSON.stringify(val));
     },
@@ -208,7 +216,6 @@ export default {
     width: 100%;
     height: 60px;
     display: flex;
-    justify-content: space-between;
     align-items: center;
     box-sizing: border-box;
     padding: 0 46px;