内容发布完成
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div slot="btn" @tap="handleInit">
|
||||
<slot v-if="$slots.default"/>
|
||||
<div v-else class="areaSelector">
|
||||
<image :src="icon" class="location"/>
|
||||
<image :src="locationIcon" class="location"/>
|
||||
<div v-text="currentArea.name"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,6 +35,7 @@ export default {
|
||||
areaId: {default: ''},
|
||||
name: {default: ''},
|
||||
all: Boolean,
|
||||
icon: {default: "location.svg"}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
@@ -53,8 +54,8 @@ export default {
|
||||
currentArea() {
|
||||
return this.fullArea?.slice(-1)?.[0] || {}
|
||||
},
|
||||
icon() {
|
||||
return this.$cdn + 'location.svg'
|
||||
locationIcon() {
|
||||
return this.$cdn + this.icon
|
||||
},
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user