Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tools
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
tools
Commits
1a022a68
Commit
1a022a68
authored
Jan 28, 2021
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
4617de87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
mp-remark/js/index.js
+11
-1
No files found.
mp-remark/js/index.js
View file @
1a022a68
...
@@ -244,7 +244,13 @@ fetch(UI).then(function(res){
...
@@ -244,7 +244,13 @@ fetch(UI).then(function(res){
this
.
openUi
();
this
.
openUi
();
},
},
getWorksIdByBase64
(
url
)
{
getWorksIdByBase64
(
url
)
{
let
worksString
=
url
.
match
(
/
\w
orks
\/\S
*
\?
/g
);
let
pre1
=
/
\w
orks
\/\S
*
\?
/g
;
let
pre2
=
/
\w
orks
\/\S
*
\?
*/g
;
if
(
url
.
indexOf
(
"?"
)
>
-
1
)
{
worksString
=
url
.
match
(
pre1
);
}
else
{
worksString
=
url
.
match
(
pre2
);
}
let
worksId
=
null
;
let
worksId
=
null
;
if
(
worksString
!==
undefined
&&
worksString
!==
null
&&
worksString
.
length
>
0
)
{
if
(
worksString
!==
undefined
&&
worksString
!==
null
&&
worksString
.
length
>
0
)
{
worksId
=
worksString
[
0
].
replace
(
"works/"
,
""
);
worksId
=
worksString
[
0
].
replace
(
"works/"
,
""
);
...
@@ -349,6 +355,7 @@ fetch(UI).then(function(res){
...
@@ -349,6 +355,7 @@ fetch(UI).then(function(res){
},
},
addZone
()
{
addZone
()
{
let
$this
=
this
;
let
$this
=
this
;
this
.
sendData
(
this
.
API
.
addZone
,
{
this
.
sendData
(
this
.
API
.
addZone
,
{
object_id
:
this
.
objectId
,
object_id
:
this
.
objectId
,
type
:
this
.
type
type
:
this
.
type
...
@@ -373,6 +380,9 @@ fetch(UI).then(function(res){
...
@@ -373,6 +380,9 @@ fetch(UI).then(function(res){
},
3000
);
},
3000
);
},
},
base64Decode
(
data
)
{
base64Decode
(
data
)
{
if
(
!
isNaN
(
data
))
{
return
data
;
}
var
rv
=
window
.
atob
(
data
);
var
rv
=
window
.
atob
(
data
);
rv
=
escape
(
rv
);
rv
=
escape
(
rv
);
rv
=
decodeURIComponent
(
rv
);
rv
=
decodeURIComponent
(
rv
);
...
...
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