手机端图片上传
This commit is contained in:
parent
84d02b5a48
commit
e55bdd2c16
@ -39,8 +39,8 @@ const router = createRouter({
|
||||
component: () => import("@/views/plink/index.vue"),
|
||||
},
|
||||
{
|
||||
path: "/cookbook",
|
||||
component: () => import("@/views/cookbook/index.vue"),
|
||||
path: "/appshare",
|
||||
component: () => import("@/views/appshare/index.vue"),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -26,13 +26,13 @@ const menuInfo = {
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
label: () => h(RouterLink, { to: "/cookbook", class: "menu-item font-[500] text-lg" }, { default: () => "菜谱" }),
|
||||
label: () => h(RouterLink, { to: "/appshare", class: "menu-item font-[500] text-lg" }, { default: () => "软件分享" }),
|
||||
},
|
||||
{
|
||||
key: "6",
|
||||
label: () => h(RouterLink, { to: "/plink", class: "menu-item font-[500] text-lg" }, { default: () => "友链" }),
|
||||
},
|
||||
],
|
||||
menuList: ["/home", "/gallery", "/article", "/widget","/cookbook","/plink"],
|
||||
menuList: ["/home", "/gallery", "/article", "/widget","/appshare","/plink"],
|
||||
};
|
||||
export default menuInfo;
|
||||
|
21
src/views/appshare/index.vue
Normal file
21
src/views/appshare/index.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
//mark import
|
||||
|
||||
//mark data
|
||||
|
||||
//mark method
|
||||
|
||||
//mark 周期、内置函数等
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -19,7 +19,7 @@
|
||||
|
||||
<falls :fileList="list" :count="acount" :bot="bottomLen" pathname="filepath" v-slot="{ file }">
|
||||
<div class="img mb-1" @contextmenu="handdlemenu($event, file)" @longpress="handdlemenu($event, file)">
|
||||
<n-image height="200px" :src="file.filepath" object-fit="fill" :img-props="{ loading: 'lazy' }" />
|
||||
<n-image height="200px" :src="file.filepath" object-fit="fill" />
|
||||
</div>
|
||||
</falls>
|
||||
|
||||
|
@ -34,7 +34,8 @@
|
||||
</n-modal>
|
||||
</n-scrollbar>
|
||||
<n-upload multiple action="https://www.hxyouzi.com/api/file/upload" accept="image/*"
|
||||
:headers="{ Authorization: token }" :show-file-list="false" :on-finish="fileFinish">
|
||||
:data="{ strategy_id: 2 }"
|
||||
:headers="{ Authorization: 'Bearer ' + '2|RKsuwoT7mbtuTW7Eguc566uwt7Wg4qgpGA6XTpM1' }" :show-file-list="false" :on-finish="fileFinish">
|
||||
<n-button type="primary">上传图片</n-button>
|
||||
</n-upload>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user