From 5529b7077126be368abd444d45ec085d8c7779e3 Mon Sep 17 00:00:00 2001 From: 明梦爽 <2972214568@qq.com> Date: 星期日, 17 四月 2022 23:21:22 +0800 Subject: [PATCH] eslint语法规范 --- src/components/globalTitle.vue | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/components/globalTitle.vue b/src/components/globalTitle.vue index 6e9f2e1..5d3fe80 100644 --- a/src/components/globalTitle.vue +++ b/src/components/globalTitle.vue @@ -2,7 +2,9 @@ <div> <el-row> <div class="fl"> - <span><b>{{ getTitle(this.$route.query.title) }}</b></span> + <span + ><b>{{ getTitle(this.$route.query.title) }}</b></span + > </div> <div class="fr"> <el-breadcrumb separator-class="el-icon-arrow-right"> @@ -16,17 +18,16 @@ </template> <script> export default { - name:'globalTitle', - data(){ + name: 'globalTitle', + data() { return { - title:'', + title: '' } }, - created(){ - }, - methods:{ - getTitle(v){ - switch(v){ + created() {}, + methods: { + getTitle(v) { + switch (v) { case 'introduce': return '绉戝崗姒傚喌' case 'zhengce': @@ -50,8 +51,8 @@ </script> <style scoped> - .el-row { - /* background-color: rgb(83, 168, 125); */ - border-bottom: 1px solid #0f99e9; - } -</style> \ No newline at end of file +.el-row { + /* background-color: rgb(83, 168, 125); */ + border-bottom: 1px solid #0f99e9; +} +</style> -- Gitblit v1.8.0