Commit eb6c7035 authored by zhengke's avatar zhengke

创建设计

parent a07a27cd
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="items-center row"> <div class="items-center row">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713433759000_282.png" <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713433759000_282.png"
style="height: 33px" @click="forwardProduct" class="cusor-pointer"/> style="height: 33px" @click="forwardProduct" class="cusor-pointer"/>
<div class="primary-link-button q-ml-lg cusor-pointer no-select">创建设计</div> <div class="primary-link-button q-ml-lg cusor-pointer no-select" @click="addVisible=true">创建设计</div>
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<el-avatar <el-avatar
:size="size" :size="size"
...@@ -101,19 +101,24 @@ ...@@ -101,19 +101,24 @@
</template> </template>
</el-dropdown> </el-dropdown>
</div> </div>
<!-- 创建设计 -->
<temDesign :addTem="addVisible" @close="addVisible=false"/>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue";
import { useUserStore } from "@/store"; import { useUserStore } from "@/store";
import { storeToRefs } from "pinia"; import { storeToRefs } from "pinia";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import {USER_DEFAULT_HEADER} from '@/configs/customer' import {USER_DEFAULT_HEADER} from '@/configs/customer'
import { openNewBlank } from "@/utils/common"; import { openNewBlank } from "@/utils/common";
import temDesign from "@/components/home/temDesign.vue";
const props = defineProps({ const props = defineProps({
size: { size: {
type: Number, type: Number,
default: 33, default: 33,
}, },
}); });
const addVisible = ref(false)
const forwardProduct = () => router.push('/p/show') const forwardProduct = () => router.push('/p/show')
const router = useRouter() const router = useRouter()
const useUser = useUserStore(); const useUser = useUserStore();
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="col"></div> <div class="col"></div>
<!-- <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713433759000_282.png" <!-- <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713433759000_282.png"
style="height: 33px" /> style="height: 33px" />
<div class="primary-link-button q-ml-lg" @click="addVisible=true">创建设计</div> --> <div class="primary-link-button q-ml-lg">创建设计</div> -->
<UserCard :size="33"></UserCard> <UserCard :size="33"></UserCard>
</div> </div>
...@@ -28,13 +28,11 @@ ...@@ -28,13 +28,11 @@
</el-scrollbar> </el-scrollbar>
</div> </div>
</div> </div>
<!-- 创建设计 -->
<temDesign :addTem="addVisible" @close="addVisible=false"/>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import UserCard from "@/components/User/UserCard.vue"; import UserCard from "@/components/User/UserCard.vue";
import temDesign from "@/components/home/temDesign.vue";
import { useMenuStore } from "@/store"; import { useMenuStore } from "@/store";
import { ref, watch } from "vue"; import { ref, watch } from "vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
...@@ -44,8 +42,6 @@ const useMenu = useMenuStore(); ...@@ -44,8 +42,6 @@ const useMenu = useMenuStore();
const menus = ref(useMenu.getTemplateMenu); const menus = ref(useMenu.getTemplateMenu);
const activeIndex = ref(0) const activeIndex = ref(0)
const addVisible = ref(false)
const forwardSpace = () => router.push('/space') const forwardSpace = () => router.push('/space')
watch(() => router.currentRoute.value.path, (toPath) => { watch(() => router.currentRoute.value.path, (toPath) => {
......
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