Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
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
劳工
zeroing-editor
Commits
3cc19fd2
Commit
3cc19fd2
authored
Feb 27, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复复制星速台链接projectid为undefined的问题
parent
be596d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
PublishView.vue
src/views/Editor/dialogs/PublishView.vue
+3
-3
No files found.
src/views/Editor/dialogs/PublishView.vue
View file @
3cc19fd2
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
if
(
env
===
"test"
&&
data
.
notLogin
)
{
if
(
env
===
"test"
&&
data
.
notLogin
)
{
localStorage
.
setItem
(
"ticket"
,
""
);
localStorage
.
setItem
(
"ticket"
,
""
);
await
this
.
getTicket
(
getTestEnvTicket
);
await
this
.
getTicket
(
getTestEnvTicket
);
this
.
getSkinsList
(
this
.
p
rojectI
d
);
this
.
getSkinsList
(
this
.
p
xPi
d
);
}
else
if
(
env
===
"prod"
&&
data
.
notLogin
)
{
}
else
if
(
env
===
"prod"
&&
data
.
notLogin
)
{
localStorage
.
setItem
(
"prod_ticket"
,
""
);
localStorage
.
setItem
(
"prod_ticket"
,
""
);
this
.
$message
({
this
.
$message
({
...
@@ -182,14 +182,14 @@
...
@@ -182,14 +182,14 @@
},
},
/** 获取访问链接 */
/** 获取访问链接 */
getUrl
()
{
getUrl
()
{
const
{
tplType
,
env
,
skinId
,
projectI
d
,
skinList
}
=
this
;
const
{
env
,
skinId
,
pxPi
d
,
skinList
}
=
this
;
let
type
=
1
;
let
type
=
1
;
skinList
.
forEach
(
skin
=>
{
skinList
.
forEach
(
skin
=>
{
if
(
skin
.
id
===
skinId
)
{
if
(
skin
.
id
===
skinId
)
{
type
=
skin
.
type
;
type
=
skin
.
type
;
}
}
});
});
const
url
=
`
${
pxHostMapping
[
env
]}
/projectx/
${
p
rojectI
d
}
/
${
const
url
=
`
${
pxHostMapping
[
env
]}
/projectx/
${
p
xPi
d
}
/
${
type
===
"1"
?
"index"
:
skinId
type
===
"1"
?
"index"
:
skinId
}
.html`
;
}
.html`
;
copy
(
url
);
copy
(
url
);
...
...
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