Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
eb6c7035
Commit
eb6c7035
authored
Apr 29, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建设计
parent
a07a27cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
UserCard.vue
src/components/User/UserCard.vue
+6
-1
Layout.vue
src/views/TemplateCenter/Layout.vue
+2
-6
No files found.
src/components/User/UserCard.vue
View file @
eb6c7035
...
...
@@ -2,7 +2,7 @@
<div
class=
"items-center row"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713433759000_282.png"
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-avatar
:size=
"size"
...
...
@@ -101,19 +101,24 @@
</
template
>
</el-dropdown>
</div>
<!-- 创建设计 -->
<temDesign
:addTem=
"addVisible"
@
close=
"addVisible=false"
/>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
"vue"
;
import
{
useUserStore
}
from
"@/store"
;
import
{
storeToRefs
}
from
"pinia"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
USER_DEFAULT_HEADER
}
from
'@/configs/customer'
import
{
openNewBlank
}
from
"@/utils/common"
;
import
temDesign
from
"@/components/home/temDesign.vue"
;
const
props
=
defineProps
({
size
:
{
type
:
Number
,
default
:
33
,
},
});
const
addVisible
=
ref
(
false
)
const
forwardProduct
=
()
=>
router
.
push
(
'/p/show'
)
const
router
=
useRouter
()
const
useUser
=
useUserStore
();
...
...
src/views/TemplateCenter/Layout.vue
View file @
eb6c7035
...
...
@@ -9,7 +9,7 @@
<div
class=
"col"
></div>
<!--
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713433759000_282.png"
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>
</div>
...
...
@@ -28,13 +28,11 @@
</el-scrollbar>
</div>
</div>
<!-- 创建设计 -->
<temDesign
:addTem=
"addVisible"
@
close=
"addVisible=false"
/>
</
template
>
<
script
lang=
"ts"
setup
>
import
UserCard
from
"@/components/User/UserCard.vue"
;
import
temDesign
from
"@/components/home/temDesign.vue"
;
import
{
useMenuStore
}
from
"@/store"
;
import
{
ref
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
...
...
@@ -44,8 +42,6 @@ const useMenu = useMenuStore();
const
menus
=
ref
(
useMenu
.
getTemplateMenu
);
const
activeIndex
=
ref
(
0
)
const
addVisible
=
ref
(
false
)
const
forwardSpace
=
()
=>
router
.
push
(
'/space'
)
watch
(()
=>
router
.
currentRoute
.
value
.
path
,
(
toPath
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment