提交 9d1a3021 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 d78f24a5
No preview for this file type
......@@ -5,6 +5,8 @@ import { uploadFileByUrl } from '@/utils/upload'
const ChuangKitDesign = defineAsyncComponent(() => import('./ChuangKitDesign.vue'))
const route = useRoute()
const userStore = useUserStore()
const model = defineModel()
......@@ -38,9 +40,16 @@ function onClose() {
<template>
<div class="image-design">
<el-button type="primary" @click="designVisible = true">打开编辑器</el-button>
<router-link :to="{ path: 'design', query: route.query }" target="_blank">
<el-button type="primary">打开编辑器</el-button>
<!-- <el-button type="primary" @click="designVisible = true">打开编辑器</el-button> -->
</router-link>
<ul>
<li v-for="item in data.list" :key="item.designId" :class="{ active: item.designId === active }" @click="handleClick(item)">
<li
v-for="item in data.list"
:key="item.designId"
:class="{ active: item.designId === active }"
@click="handleClick(item)">
<img :src="item.thumbUrl" />
</li>
</ul>
......
......@@ -11,7 +11,8 @@ const routes: RouteRecordRaw[] = [
{ path: 'update', component: () => import('./views/Update.vue'), props: { action: 'update' } },
{ path: 'view', component: () => import('./views/Update.vue'), props: { action: 'view' } }
]
}
},
{ path: '/material/design', component: () => import('./views/Design.vue') }
]
export { routes }
<script setup></script>
<template>
<div id="chuangkit-design-iframe">
<video src="/1.mp4" autoplay></video>
</div>
</template>
<style lang="scss">
#chuangkit-design-iframe {
background-color: rgba(0, 0, 0, 0.7);
}
video {
width: 100vw;
height: 100vh;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论