修改组件名称
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<i class="fn-icon bg-center-contain" :style="iconStyle"></i>
|
<i class="icon-element bg-center-contain" :style="iconStyle"></i>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Icon',
|
name: 'IconElement',
|
||||||
props: {
|
props: {
|
||||||
// 来源(inner、outer)
|
// 来源(inner、outer)
|
||||||
from: {
|
from: {
|
||||||
@@ -59,7 +59,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.fn-icon {
|
.icon-element {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'About',
|
name: 'AboutView',
|
||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
next(vm => {
|
next(vm => {
|
||||||
vm.utils.changeTitle('关于');
|
vm.utils.changeTitle('关于');
|
||||||
|
@@ -226,7 +226,7 @@
|
|||||||
import Icon from '@/components/Icon.vue';
|
import Icon from '@/components/Icon.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Home',
|
name: 'HomeView',
|
||||||
components: {
|
components: {
|
||||||
Icon
|
Icon
|
||||||
},
|
},
|
||||||
|
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Settings',
|
name: 'SettingsView',
|
||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
next(vm => {
|
next(vm => {
|
||||||
vm.utils.changeTitle('设置');
|
vm.utils.changeTitle('设置');
|
||||||
|
@@ -60,7 +60,7 @@
|
|||||||
import navTools from '@/assets/js/navTools.js';
|
import navTools from '@/assets/js/navTools.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Tools',
|
name: 'ToolsView',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
utils: this.$root.utils,
|
utils: this.$root.utils,
|
||||||
|
Reference in New Issue
Block a user