Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
ea3455a1
Commit
ea3455a1
authored
Dec 15, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v.0.4.5
parent
caa18687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app.ts
src/config/app.ts
+6
-6
No files found.
src/config/app.ts
View file @
ea3455a1
import
Dexie
from
"dexie"
;
import
Dexie
from
"dexie"
;
export
const
APPVERSION
=
"0.4.
4
"
;
export
const
APPVERSION
=
"0.4.
5
"
;
export
const
set_version
=
()
=>
{
export
const
set_version
=
()
=>
{
localStorage
.
setItem
(
"version"
,
APPVERSION
);
localStorage
.
setItem
(
"version"
,
APPVERSION
);
...
@@ -20,13 +20,13 @@ export const checkVersionAndDoSomething = async () => {
...
@@ -20,13 +20,13 @@ export const checkVersionAndDoSomething = async () => {
set_version
();
set_version
();
console
.
log
(
"version:"
,
currentVersion
);
console
.
log
(
"version:"
,
currentVersion
);
if
(
!
oldVersion
||
compareVersion
(
oldVersion
,
"0.4.
2"
)
===
-
1
)
{
if
(
!
oldVersion
||
compareVersion
(
oldVersion
,
"0.4.
4"
)
!==
1
)
{
return
Dexie
.
delete
(
"MyAppDatabase"
)
return
Dexie
.
delete
(
"MyAppDatabase"
)
.
then
((
r
)
=>
{
.
then
(()
=>
{
console
.
log
(
r
,
"
success"
);
console
.
log
(
"delete database
success"
);
})
})
.
catch
((
f
)
=>
{
.
catch
(()
=>
{
console
.
log
(
f
,
"faill
"
);
console
.
log
(
"delete database failed
"
);
});
});
}
}
};
};
...
...
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