|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="applets-demo-header">
|
|
<div class="applets-demo-header">
|
|
|
<div class="back" @click="navigateTo">
|
|
<div class="back" @click="navigateTo">
|
|
|
- <Left />
|
|
|
|
|
|
|
+ <Home />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="applets-icon">
|
|
<div class="applets-icon">
|
|
|
<img
|
|
<img
|
|
@@ -14,17 +14,19 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, computed } from 'vue';
|
|
import { defineComponent, computed } from 'vue';
|
|
|
import Taro from '@tarojs/taro';
|
|
import Taro from '@tarojs/taro';
|
|
|
-import { Left } from '@nutui/icons-vue';
|
|
|
|
|
|
|
+import { Home } from '@nutui/icons-vue';
|
|
|
import config from '../../../../../config.json';
|
|
import config from '../../../../../config.json';
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'header',
|
|
name: 'header',
|
|
|
components: {
|
|
components: {
|
|
|
- Left
|
|
|
|
|
|
|
+ Home
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
//返回demo页
|
|
//返回demo页
|
|
|
const navigateTo = () => {
|
|
const navigateTo = () => {
|
|
|
- Taro.navigateBack();
|
|
|
|
|
|
|
+ Taro.navigateBack({
|
|
|
|
|
+ delta: 1
|
|
|
|
|
+ });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const compName = computed(() => {
|
|
const compName = computed(() => {
|