Browse Source

修改部分代码格式化

zhengjinyi 3 years ago
parent
commit
737211341b

+ 2 - 1
.prettierrc.json

@@ -1,4 +1,5 @@
 {
   "singleQuote": true,
-  "semi": false
+  "semi": false,
+  "trailingComma": "none"
 }

BIN
public/favicon.ico


File diff suppressed because it is too large
+ 0 - 0
public/favicon.svg


+ 8 - 5
public/index.html

@@ -1,11 +1,14 @@
 <!DOCTYPE html>
 <html>
   <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="renderer" content="webkit">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <meta charset="utf-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <meta name="renderer" content="webkit" />
+    <meta
+      name="viewport"
+      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
+    />
+    <link rel="icon" href="<%= BASE_URL %>favicon.svg" />
     <title><%= webpackConfig.name %></title>
   </head>
   <body>

+ 2 - 2
src/components/Upload/singleUpload.vue

@@ -55,10 +55,10 @@ export default {
       ]
     },
     showFileList: {
-      get: function () {
+      get: function() {
         return this.value !== null && this.value !== '' && this.value !== undefined
       },
-      set: function (newValue) {}
+      set: function(newValue) {}
     }
   },
   methods: {

+ 1 - 1
src/settings.js

@@ -1,5 +1,5 @@
 module.exports = {
-  title: 'Vue Element Admin',
+  title: '采美后台登录',
 
   /**
    * @type {boolean} true | false

+ 1 - 1
src/views/sys/login/index.vue

@@ -88,7 +88,7 @@ export default {
   },
   watch: {
     $route: {
-      handler: function (route) {
+      handler: function(route) {
         const query = route.query
         if (query) {
           this.redirect = query.redirect

+ 2 - 2
src/views/sys/menus/form.vue

@@ -1,11 +1,11 @@
 <template>
   <div class="app-container">
-    <el-page-header @back="goBack" :content="isEdit?'编辑菜单':'添加菜单'" />
+    <el-page-header :content="isEdit?'编辑菜单':'添加菜单'" @back="goBack" />
     <el-card class="form-container" shadow="never">
       <el-form ref="menuFrom" :model="menu" :rules="rules" label-width="150px">
         <el-form-item label="上级菜单:" prop="parentId">
           <el-input v-model="parentTitle" readonly />
-          <input v-model="menu.parentId" type="hidden" />
+          <input v-model="menu.parentId" type="hidden">
         </el-form-item>
         <el-form-item label="菜单名称:" prop="title">
           <el-input v-model="menu.title" />

+ 4 - 4
src/views/sys/menus/list.vue

@@ -151,16 +151,16 @@ export default {
       this.$router.push({ path: '/sys/menus/list' })
     },
     handleCreate() {
-      this.$router.push({ path: '/sys/menus/add', query: { parentId: this.listQuery.parentId, title: this.parentTitle } })
+      this.$router.push({ path: '/sys/menus/add', query: { parentId: this.listQuery.parentId, title: this.parentTitle }})
     },
     handleUpdate(row) {
-      this.$router.push({ path: '/sys/menus/edit', query: { id: row.id, parentId: this.listQuery.parentId, title: this.parentTitle } })
+      this.$router.push({ path: '/sys/menus/edit', query: { id: row.id, parentId: this.listQuery.parentId, title: this.parentTitle }})
     },
     handleShowNextLevel(row) {
-      this.$router.push({ path: '/sys/menus/list', query: { parentId: row.id, title: row.title } })
+      this.$router.push({ path: '/sys/menus/list', query: { parentId: row.id, title: row.title }})
     },
     handleCreateNextLevel(row) {
-      this.$router.push({ path: '/sys/menus/add', query: { parentId: row.id, title: row.title } })
+      this.$router.push({ path: '/sys/menus/add', query: { parentId: row.id, title: row.title }})
     },
     handleDelete(row) {
       this.$confirm('是否要删除该菜单', '提示', {

+ 1 - 1
src/views/sys/roles/list.vue

@@ -81,7 +81,7 @@ export default {
       this.$router.push({ path: '/sys/roles/add' })
     },
     handleUpdate(row) {
-      this.$router.push({ path: '/sys/roles/edit', query: { id: row.id } })
+      this.$router.push({ path: '/sys/roles/edit', query: { id: row.id }})
     },
     handleDelete(row) {
       this.$confirm('是否要删除该角色', '提示', {

+ 1 - 1
src/views/sys/users/list.vue

@@ -94,7 +94,7 @@ export default {
       this.$router.push({ path: '/sys/users/add' })
     },
     handleUpdate(row) {
-      this.$router.push({ path: '/sys/users/edit', query: { id: row.id } })
+      this.$router.push({ path: '/sys/users/edit', query: { id: row.id }})
     },
     handleDelete(row) {
       this.$confirm('是否要删除该用户', '提示', {

Some files were not shown because too many files changed in this diff