修改一些配置

master
liuyx 2 years ago
parent 4f2f517d2f
commit dfdcd58d8c

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

@ -1,16 +1,10 @@
<template> <template>
<Header /> <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> <main>
<router-view></router-view> <router-view></router-view>
</main> </main>
<Footer /> <Footer />
<el-backtop :right="50" :bottom="70" :visibility-height="100" /> <el-backtop :right="30" :bottom="70" :visibility-height="100" />
</template> </template>
<script setup> <script setup>
@ -18,15 +12,4 @@ import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue' import Footer from '@/components/Footer.vue'
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
// .main-wrap {
// display: flex;
// justify-content: center;
// align-items: center;
// margin: 10px 0;
// .content {
// width: 65%;
// // margin-top: 50px;
// }
// }
</style>

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

Loading…
Cancel
Save