Commit 4ca9a103 authored by 黄同智's avatar 黄同智

完善逻辑

parent fbe3f0e7
...@@ -137,7 +137,7 @@ import { ref } from 'vue'; ...@@ -137,7 +137,7 @@ import { ref } from 'vue';
const list = ref([1]); const list = ref([1]);
const tags = ref(['悬疑', '古装', '奇幻', '爱情', '都市']); const tags = ref(['悬疑', '古装', '奇幻', '爱情', '都市']);
const colors = ['#5337C7', '#12d9d2', '#DD8330', '#C9397E', '#53B06C', '#155DFC'] const colors = ['#5337C7', '#12d9d2', '#DD8330', '#C9397E', '#53B06C', '#155DFC']
const loading = ref(true) const loading = ref(false)
// 根据colors数组长度生成随机颜色 // 根据colors数组长度生成随机颜色
const randomColor = (index: number) => { const randomColor = (index: number) => {
return colors[index]; return colors[index];
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-select v-model="selectValue" placeholder="Select" style="width: 240px"> <el-select v-model="selectValue" placeholder="Select" style="width: 240px">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
<el-button type="primary" color="#785BE5" :dark="true"> <el-button type="primary" color="#785BE5" :dark="true" @click="router.push('/')">
<img src="@/static/imgs/icon1.png" alt=""> <img src="@/static/imgs/icon1.png" alt="">
<span class="ml-4">创建项目</span> <span class="ml-4">创建项目</span>
</el-button> </el-button>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="flex-between-center mt-14"> <div class="flex-between-center mt-14">
<div class="text-999 fs-12">2020-10-22 13:20:30 创建</div> <div class="text-999 fs-12">2020-10-22 13:20:30 创建</div>
<el-dropdown> <el-dropdown>
<el-button text :icon="MoreFilled" class="morebtn" /> <el-button text :icon="MoreFilled" class="morebtn" @click.stop/>
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
<el-dropdown-item @click="openModal(item, '1')">编辑名称</el-dropdown-item> <el-dropdown-item @click="openModal(item, '1')">编辑名称</el-dropdown-item>
......
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