ADD wiki profile function

This commit is contained in:
simple321vip
2023-04-08 22:47:23 +08:00
parent c0a8a9cd95
commit 67c4658f6b
3 changed files with 51 additions and 16 deletions
+9 -3
View File
@@ -28,7 +28,8 @@
</el-form-item>
</el-form>
<el-button @click="openBlogEditer">创作</el-button>
<el-button @click="publishbyBids">全部重新发布</el-button>
<el-button @click="publishbyBids">重新发布Wiki</el-button>
<el-button @click="publishProfile">重新发布profile</el-button>
<div class="blog_list" v-for="item in data_list">
<h3 style="cursor: pointer; width: min-content;white-space:nowrap" @click="openBlog(item.bid)">{{ item.title }}</h3>
@@ -48,9 +49,10 @@
</template>
<script setup lang="ts">
import Cookies from 'js-cookie';
import { reactive } from 'vue';
import Cookies from 'js-cookie'
import { reactive } from 'vue'
import { getBlogs, getBtName, publish, publishAll } from '../../api/blogView'
import { publish_profile } from '../../api/profile'
import router from '../../router/index'
// -- INTERFACE OR TYPE DEFINITION --
@@ -111,6 +113,10 @@ const publishbyBids = () => {
publishAll()
}
const publishProfile = () => {
publish_profile()
}
const publishbyBid = (bid: string) => {
publish(bid)
}