文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit ef550cbd by 郭婉茹

find text

parent 2b747371
...@@ -147,9 +147,9 @@ export default { ...@@ -147,9 +147,9 @@ export default {
}, },
//获取内容 //获取内容
getContent() { getContent() {
console.log("getContent"); console.log("getContent this.file: " + JSON.stringify(this.file));
console.log(" this.file: " + JSON.stringify(this.file)); console.log("getContent this.documentId: " + this.documentId);
console.log(" this.documentId: " + this.documentId); console.log("getContent this.content: " + this.content);
this.axios({ this.axios({
method: "post", method: "post",
url: "/files/getFileContent", url: "/files/getFileContent",
...@@ -160,8 +160,11 @@ export default { ...@@ -160,8 +160,11 @@ export default {
if (res.return_code == 200) { if (res.return_code == 200) {
// console.log(" getContent: " + res.result); // console.log(" getContent: " + res.result);
this.content = res.result; this.content = res.result;
this.$nextTick(function () {
this.getTokenList();
});
this.contentWithoutColor = this.content; this.contentWithoutColor = this.content;
this.getTokenList();
// console.log( // console.log(
// " this.contentWithoutColor: " + this.contentWithoutColor // " this.contentWithoutColor: " + this.contentWithoutColor
// ); // );
......
...@@ -154,7 +154,9 @@ export default { ...@@ -154,7 +154,9 @@ export default {
// console.log(" getContent: " + res.result); // console.log(" getContent: " + res.result);
this.content = res.result; this.content = res.result;
console.log("getContent this.content: " + this.content); console.log("getContent this.content: " + this.content);
this.getTokenList(); this.$nextTick(function () {
this.getTokenList();
});
// console.log( // console.log(
// " this.contentWithoutColor: " + this.contentWithoutColor // " this.contentWithoutColor: " + this.contentWithoutColor
// ); // );
......
...@@ -139,7 +139,9 @@ export default { ...@@ -139,7 +139,9 @@ export default {
if (res.return_code == 200) { if (res.return_code == 200) {
// console.log(" getContent: " + res.result); // console.log(" getContent: " + res.result);
this.content = res.result; this.content = res.result;
this.getTokenList(); this.$nextTick(function () {
this.getTokenList();
});
// console.log( // console.log(
// " this.contentWithoutColor: " + this.contentWithoutColor // " this.contentWithoutColor: " + this.contentWithoutColor
// ); // );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment