diff --git a/tamguo-mms/src/main/java/com/tamguo/config/web/ThymeleafConfig.java b/tamguo-mms/src/main/java/com/tamguo/config/web/ThymeleafConfig.java index 72756bd..1660650 100644 --- a/tamguo-mms/src/main/java/com/tamguo/config/web/ThymeleafConfig.java +++ b/tamguo-mms/src/main/java/com/tamguo/config/web/ThymeleafConfig.java @@ -22,7 +22,7 @@ public class ThymeleafConfig implements EnvironmentAware{ if(viewResolver != null) { Map vars = new HashMap<>(); vars.put("domainName", env.getProperty("domain.name")); - vars.put("adminDomain", env.getProperty("admin.domain.name")); + vars.put("bookDomainName", env.getProperty("book.domain.name")); vars.put("PAPER_TYPE_ZHENTI", SystemConstant.ZHENGTI_PAPER_ID); vars.put("PAPER_TYPE_MONI", SystemConstant.MONI_PAPER_ID); vars.put("PAPER_TYPE_YATI", SystemConstant.YATI_PAPER_ID); diff --git a/tamguo-mms/src/main/resources/application.properties b/tamguo-mms/src/main/resources/application.properties index bee2052..1ebfbb5 100644 --- a/tamguo-mms/src/main/resources/application.properties +++ b/tamguo-mms/src/main/resources/application.properties @@ -1,5 +1,5 @@ domain.name=http://localhost:8084/ -admin.domain.name=http://localhost:8084/ +book.domain.name=http://localhost:8083/ server.port=8084 jasypt.encryptor.password=tamguo diff --git a/tamguo-mms/src/main/resources/static/js/member/booklist.js b/tamguo-mms/src/main/resources/static/js/member/booklist.js index 6ba80b2..1421f97 100644 --- a/tamguo-mms/src/main/resources/static/js/member/booklist.js +++ b/tamguo-mms/src/main/resources/static/js/member/booklist.js @@ -11,6 +11,7 @@ var validateCategory = (rule, value, callback) => { var vm = new Vue({ el:'#container', data:{ + bookDomainName:null, totalCount:0, bookList:[], categoryList:[], @@ -102,4 +103,5 @@ var vm = new Vue({ } }); vm.getBookList(); -vm.getBookCategory(); \ No newline at end of file +vm.getBookCategory(); +vm.bookDomainName = bookDomainName; \ No newline at end of file diff --git a/tamguo-mms/src/main/resources/templates/booklist.html b/tamguo-mms/src/main/resources/templates/booklist.html index 18fe314..2f5991d 100644 --- a/tamguo-mms/src/main/resources/templates/booklist.html +++ b/tamguo-mms/src/main/resources/templates/booklist.html @@ -105,7 +105,7 @@ - 查看 + 查看 编辑 @@ -153,6 +153,7 @@ \ No newline at end of file