修改一些配置

master
liuyx 2 years ago
parent 4f2f517d2f
commit dfdcd58d8c

@ -3,22 +3,16 @@ module.exports = {
browser: true,
es2021: true
},
extends: [
'plugin:vue/vue3-essential',
'standard'
],
overrides: [
],
extends: ['plugin:vue/vue3-essential', 'standard'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: [
'vue'
],
plugins: ['vue'],
rules: {
'vue/multi-word-component-names': 0,
'space-before-function-paren': ['error', 'never'], // 函数名与括号之间无空格
'space-before-function-paren': 0,
quotes: ['error', 'single'] // 单引号
}
}

@ -1,9 +1,3 @@
<!--
* @Author: liuyx 1517482303@qq.com
* @Date: 2022-11-09 23:35:09
* @LastEditTime: 2022-12-18 21:53:09
* @Description:
-->
<!DOCTYPE html>
<html lang="en">
<head>

@ -1,16 +1,10 @@
<template>
<Header />
<!-- <div class="home-banner" v-if="$router.currentRoute.value.path === '/'"></div>
<main class="main-wrap">
<div class="content">
<router-view></router-view>
</div>
</main> -->
<main>
<router-view></router-view>
</main>
<Footer />
<el-backtop :right="50" :bottom="70" :visibility-height="100" />
<el-backtop :right="30" :bottom="70" :visibility-height="100" />
</template>
<script setup>
@ -18,15 +12,4 @@ import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue'
</script>
<style lang="scss" scoped>
// .main-wrap {
// display: flex;
// justify-content: center;
// align-items: center;
// margin: 10px 0;
// .content {
// width: 65%;
// // margin-top: 50px;
// }
// }
</style>
<style lang="scss" scoped></style>

@ -23,7 +23,4 @@ const app = createApp(App)
app.component('svg-icon', SvgIcon)
app.use(VMdPreview)
.use(router)
.use(ElementPlus)
.mount('#app')
app.use(VMdPreview).use(router).use(ElementPlus).mount('#app')

Loading…
Cancel
Save