Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
quantum-blocks-h5
Commits
5d3c5c0d
Commit
5d3c5c0d
authored
Nov 24, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(backtop): 获取分享地址判断调整
parent
c1dc661f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
20 deletions
+7
-20
index.vue
app/web/page/activity/component/EmptyState/index.vue
+6
-10
index.ts
app/web/page/activity/view/activity/index.ts
+0
-9
index.vue
app/web/page/activity/view/activity/index.vue
+1
-1
No files found.
app/web/page/activity/component/EmptyState/index.vue
View file @
5d3c5c0d
...
@@ -2,22 +2,18 @@
...
@@ -2,22 +2,18 @@
<cr-empty
<cr-empty
class=
"empty-state"
class=
"empty-state"
image=
"error"
image=
"error"
:description=
"description
"
description=
"你访问的页面不存在
"
/>
/>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'
EmptyState
'
,
name
:
'
EmptyState
'
,
props
:
{
description
:
{
type
:
String
,
default
:
"
你访问的页面不存在
"
}
},
mounted
()
{
mounted
()
{
const
loadingEle
=
document
.
querySelector
(
'
.mainload
'
);
if
(
!
this
.
$isServer
)
{
if
(
!
loadingEle
)
{
return
;
}
const
loadingEle
=
document
.
querySelector
(
'
.mainload
'
);
loadingEle
.
style
.
display
=
'
none
'
;
if
(
!
loadingEle
)
{
return
;
}
loadingEle
.
style
.
display
=
'
none
'
;
}
}
}
}
}
</
script
>
</
script
>
...
...
app/web/page/activity/view/activity/index.ts
View file @
5d3c5c0d
...
@@ -50,15 +50,6 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin, Disab
...
@@ -50,15 +50,6 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin, Disab
get
tenantIdCorrect
()
{
get
tenantIdCorrect
()
{
return
+
this
.
tenantId
===
+
(
localStorage
.
get
(
'
tenantId
'
)
||
basicConfig
.
yxmTenantId
);
return
+
this
.
tenantId
===
+
(
localStorage
.
get
(
'
tenantId
'
)
||
basicConfig
.
yxmTenantId
);
}
}
get
errorDesc
()
{
if
(
this
.
noPageData
)
{
return
'
你访问的页面不存在
'
;
}
else
if
(
!
this
.
tenantIdCorrect
)
{
return
'
当前页面禁止访问
'
;
}
else
{
return
'
你访问的页面不存在
'
;
}
}
@
Watch
(
'
pageData
'
,
{
deep
:
true
})
@
Watch
(
'
pageData
'
,
{
deep
:
true
})
onPageDataChange
(
val
)
{
onPageDataChange
(
val
)
{
...
...
app/web/page/activity/view/activity/index.vue
View file @
5d3c5c0d
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</div>
</div>
<back-top
v-if=
"showBackTop"
:show-back-top=
"showBackTop"
ref=
"backTop"
/>
<back-top
v-if=
"showBackTop"
:show-back-top=
"showBackTop"
ref=
"backTop"
/>
</
template
>
</
template
>
<empty-state
:description=
"errorDesc"
v-else
/>
<empty-state
v-else
/>
</div>
</div>
</template>
</template>
<
script
lang=
"ts"
src=
"./index.ts"
></
script
>
<
script
lang=
"ts"
src=
"./index.ts"
></
script
>
...
...
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