@@ -62,9 +62,10 @@ export default {
// 方法集合
methods: {
initHanziwrite() {
+ let _this = this;
this.writer = HanziWriter.default.create(this.targetDiv, this.bookText, {
charDataLoader(char, onComplete) {
- onComplete(this.bookStrokes);
+ onComplete(_this.bookStrokes);
},
padding: 5,
showOutline: true,
@@ -68,9 +68,10 @@ export default {
let options = {
showCharacter: false,