web mode indent not correct when line too long. the code:
<script>
import axios from 'axios'
export default {
components: {
},
asyncData ({ params }) {
return axios
.get().then((res) => {
return { title: res.data.title }
})
}
}
</script>
The following is correct.
return axios
.get().then((res) => {
return { title: res.data.title }
})
but:
return axios.get()
.then((res) => {
return { title: res.data.title }
})
when i break line behind "axios", it's not correct
anybody help??
啊...我找到了。
(add-to-list 'web-mode-indentation-params '("lineup-calls" . nil))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.