Browse Source

版本修改

wolyshaw 4 years ago
parent
commit
c8707c2483
2 changed files with 5 additions and 1 deletions
  1. 1 0
      package.json
  2. 4 1
      src/views/editionManager/editionList.vue

+ 1 - 0
package.json

@@ -25,6 +25,7 @@
     "element-ui": "^2.13.2",
     "http-server": "^0.12.3",
     "i": "^0.3.6",
+    "js-base64": "^3.6.0",
     "js-cookie": "2.2.0",
     "linq": "^3.2.2",
     "lodash": "^4.17.20",

+ 4 - 1
src/views/editionManager/editionList.vue

@@ -63,7 +63,7 @@
                            width="120"
                            label="下载链接">
                               <template slot-scope="scope">
-                                <overflow-text width="120px" :text="scope.row.downloadUrl"></overflow-text>
+                                <overflow-text width="120px" :text="decode(scope.row.downloadUrl)"></overflow-text>
                               </template>
                            </el-table-column>
           <el-table-column align="center"
@@ -160,6 +160,7 @@
 <script>
 import { appVersionInfo, addAppVersionInfo, resetAppVersionInfo } from "@/api/systemManage";
 import pagination from "@/components/Pagination/index";
+import { decode } from 'js-base64'
 export default {
   components: {
     pagination
@@ -213,6 +214,7 @@ export default {
     this.init();
   },
   methods: {
+    decode,
     search () {
       this.rules.page = 1;
       this.getList()
@@ -254,6 +256,7 @@ export default {
     },
     resetEdit (row) {
       this.isNew = false;
+      row.downloadUrl = decode(row.downloadUrl)
       this.sectionForm = row;
       this.sectionVisible = true;
     },