|
@@ -3,17 +3,20 @@
|
|
<div class="c_pub_button_confirm" @click="testStart">测试</div>
|
|
<div class="c_pub_button_confirm" @click="testStart">测试</div>
|
|
<input v-model="testcount" type="number" />
|
|
<input v-model="testcount" type="number" />
|
|
<div>测试: {{ count }}/ {{testcount}}</div>
|
|
<div>测试: {{ count }}/ {{testcount}}</div>
|
|
|
|
+ <div v-for="(item, index) in string" :key="index">{{ index+1 }}: {{item}}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { string } from "html-docx-js/dist/html-docx";
|
|
import { v4 as uuidv4 } from "uuid";
|
|
import { v4 as uuidv4 } from "uuid";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
count: 0,
|
|
count: 0,
|
|
- testcount: 10
|
|
|
|
|
|
+ testcount: 10,
|
|
|
|
+ string: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -44,6 +47,7 @@ export default {
|
|
console.log(response);
|
|
console.log(response);
|
|
let data = response.data.FunctionResponse
|
|
let data = response.data.FunctionResponse
|
|
console.log(data);
|
|
console.log(data);
|
|
|
|
+ _this.string.push(data.message)
|
|
_this.count++
|
|
_this.count++
|
|
}).catch((error) => {
|
|
}).catch((error) => {
|
|
console.log(error);
|
|
console.log(error);
|