Browse Source

wanda-adm:feat >更改统一配置文件 editorconfig

shaun-sheep 4 years ago
parent
commit
6d315e9e05
3 changed files with 20 additions and 16 deletions
  1. 4 4
      .editorconfig
  2. 14 12
      src/App.vue
  3. 2 0
      src/utils/request.ts

+ 4 - 4
.editorconfig

@@ -12,17 +12,17 @@ trim_trailing_whitespace = true
 
 # Indentation override for js(x), ts(x) and vue files
 [*.{js,jsx,ts,tsx,vue}]
-indent_size = 2
+indent_size = 4
 indent_style = space
 
 # Indentation override for css related files
 [*.{css,styl,scss,less,sass}]
-indent_size = 2
+indent_size = 4
 indent_style = space
 
 # Indentation override for html files
 [*.html]
-indent_size = 2
+indent_size = 4
 indent_style = space
 
 # Trailing space override for markdown file
@@ -31,5 +31,5 @@ trim_trailing_whitespace = false
 
 # Indentation override for config files
 [*.{json,yml}]
-indent_size = 2
+indent_size = 4
 indent_style = space

+ 14 - 12
src/App.vue

@@ -1,30 +1,32 @@
 <template>
-  <div id="app">
-    <el-scrollbar>
-      <router-view/>
-    </el-scrollbar>
-  </div>
+    <div id="app">
+        <el-scrollbar>
+            <router-view/>
+        </el-scrollbar>
+    </div>
 </template>
 
 <script lang="ts">
 import {Component, Vue} from 'vue-property-decorator'
 
 @Component({
-  name: 'App'
+    name: 'App'
 })
 export default class extends Vue {
 }
 </script>
 <style lang="scss">
 .el-scrollbar {
-  height: 100%;
-  .el-scrollbar__wrap{
-      overflow-x: auto;
-  }
-  .el-scrollbar__view{
     height: 100%;
 
-  }
+    .el-scrollbar__wrap {
+        overflow-x: auto;
+    }
+
+    .el-scrollbar__view {
+        height: 100%;
+
+    }
 }
 
 </style>

+ 2 - 0
src/utils/request.ts

@@ -9,6 +9,8 @@ const service = axios.create({
 });
 
 // Request interceptors
+// @ts-ignore
+
 service.interceptors.request.use(
   (config: { headers: { [x: string]: string } }) => {
     // Add X-Access-Token header to every request, you can add other custom headers here