style: 使用prettier格式化App.vue
This commit is contained in:
parent
7853408cc2
commit
76f7bc1bea
@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
semi: false,
|
semi: false,
|
||||||
trailingComma: 'es5',
|
trailingComma: 'es6',
|
||||||
tabWidth: 2,
|
tabWidth: 2,
|
||||||
printWidth: 80,
|
printWidth: 80,
|
||||||
endOfLine: 'lf'
|
endOfLine: 'lf'
|
||||||
|
|||||||
@ -5,7 +5,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
const pcList = ['/', '/s']
|
const pcList = ['/', '/s']
|
||||||
const mobileList = ['/_m', '/_m/', '/s_m', '/s_m/']
|
const mobileList = ['/_m', '/_m/', '/s_m', '/s_m/']
|
||||||
export default {
|
export default {
|
||||||
@ -20,7 +19,7 @@ export default {
|
|||||||
if (mobileList.includes(path) && this.$pc) {
|
if (mobileList.includes(path) && this.$pc) {
|
||||||
this.$router.push({ path: path.split('_m')[0], query: to.query })
|
this.$router.push({ path: path.split('_m')[0], query: to.query })
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user