refactor: add eslint-plugin-vue && lint code (#976)

This commit is contained in:
花裤衩
2018-08-19 16:55:24 +08:00
committed by GitHub
parent 8f58baf617
commit e5d4290938
124 changed files with 1329 additions and 1084 deletions

View File

@@ -1,13 +1,13 @@
<template>
<div>
<!--error code-->
{{a.a}}
{{ a.a }}
<!--error code-->
</div>
</template>
<script>
export default {
name: 'errorTestA'
name: 'ErrorTestA'
}
</script>

View File

@@ -1,5 +1,5 @@
<template>
<div></div>
<div/>
</template>
<script>

View File

@@ -1,17 +1,17 @@
<template>
<div class="errPage-container">
<errorA></errorA>
<errorB></errorB>
<errorA/>
<errorB/>
<!-- $t is vue-i18n global function to translate lang -->
<h3>{{$t('errorLog.tips')}}</h3>
<h3>{{ $t('errorLog.tips') }}</h3>
<code>
{{$t('errorLog.description')}}
{{ $t('errorLog.description') }}
<a target="_blank" class="link-type" href="https://panjiachen.github.io/vue-element-admin-site/guide/advanced/error.html">
{{$t('errorLog.documentation')}}
{{ $t('errorLog.documentation') }}
</a>
</code>
<a href="#">
<img src='https://wpimg.wallstcn.com/360e4842-4db5-42d0-b078-f9a84a825546.gif'>
<img src="https://wpimg.wallstcn.com/360e4842-4db5-42d0-b078-f9a84a825546.gif">
</a>
</div>
</template>
@@ -21,7 +21,7 @@ import errorA from './errorTestA'
import errorB from './errorTestB'
export default {
name: 'errorLog',
name: 'ErrorLog',
components: { errorA, errorB }
}
</script>