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

代码注释

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