生成器相关
This commit is contained in:
parent
2a2677227d
commit
dc46c15c50
@ -37,9 +37,9 @@
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<el-dialog :before-close="closeModal" :visible.sync="modalVisible" title="预览" width="30%">
|
||||
<p>{{previewText}}</p>
|
||||
<p :key="index" v-for="(item, index) in previewText">{{item}}</p>
|
||||
<span class="dialog-footer" slot="footer">
|
||||
<el-button @click="modalVisible = false" type="primary">确 定</el-button>
|
||||
<el-button @click="modalVisible = false">关 闭</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@ -69,7 +69,7 @@ export default {
|
||||
]
|
||||
},
|
||||
modalVisible: false,
|
||||
previewText: ''
|
||||
previewText: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -320,7 +320,7 @@ export default {
|
||||
return Math.floor(Math.random() * Math.pow(10, p1.length))
|
||||
})
|
||||
}
|
||||
this.previewText = text
|
||||
this.previewText = text.split('\n')
|
||||
},
|
||||
// 生成随机数
|
||||
randomNum(n, v) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user