Commit c8f5b5b2 authored by chenqikuai's avatar chenqikuai

fix:修复创建NFT的bug

parent eece3204
......@@ -57,7 +57,7 @@
:key="item.id"
:text="item.text"
:id="item.id"
class="text-sm rounded-xl text-font-white bg-app-red"
class="text-sm rounded-xl text-font-white bg-app-red ml-1"
:active="true"
></app-tag>
<div @click="eventEmit(type)">
......
......@@ -34,14 +34,6 @@
class="text-font-white my-3"
@onClick="what"
></app-cell>
<!-- <app-cell
text="分类"
type="select"
:selected="createNFT.categoryType"
:list="categoryTypes2"
class="text-font-white my-3"
@cellOnChange="(v) => (createNFT.categoryType = v)"
></app-cell> -->
<div>
<div class="text-font-white my-2">剧本简介</div>
<textarea
......@@ -179,7 +171,7 @@
<script lang="ts">
import { Dialog } from "vant";
import Vue from "vue";
import { mapState } from "vuex";
import { mapMutations, mapState } from "vuex";
export default Vue.extend({
data() {
......@@ -236,6 +228,9 @@ export default Vue.extend({
const list = await this.$service.nftService.getCategory();
this.categoryTypes = list;
this.createNFT.categoryType = (list.length !== 0 && list[0].id) || NaN;
this.setState({
pickedList: [],
});
},
computed: {
...mapState("create", {
......@@ -274,6 +269,9 @@ export default Vue.extend({
},
},
methods: {
...mapMutations("create", {
setState: "SET_STATE",
}),
setCreateNFT(obj: any) {
this.createNFT = {
...this.createNFT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment