提交 593c6b0b authored 作者: matian's avatar matian

代码注释

上级 f69f3d63
......@@ -15,7 +15,6 @@
<script>
var ip = returnCitySN['cip']
window.localStorage.setItem('ip', ip)
console.log(ip, 'ip')
</script>
</body>
</html>
......@@ -151,15 +151,10 @@ export default {
},
methods: {
submitForm(formName) {
// const options = this.ruleForm.question_options.filter(item => item.option)
// if (options.length < this.ruleForm.question_options.length) {
// this.$message.warning('请完善选项内容')
// }
this.$refs[formName].validate(valid => {
const options = this.ruleForm.question_options.filter(item => item.option)
if (options.length < this.ruleForm.question_options.length) {
this.$message.warning('请完善选项内容')
return
}
if (valid) {
if (this.$route.query.id) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论