mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: correct condition to record recent open time for valid repository names
This commit is contained in:
@@ -107,7 +107,7 @@ watchEffect(() => {
|
||||
|
||||
storage.set('currentFile', data ? pick(data, 'repo', 'path', 'type', 'name', 'extra') : null)
|
||||
|
||||
if (data && data.type === 'file' && !isNormalRepoName(data.repo)) { // record recent open time, except for repo starts with '__'
|
||||
if (data && data.type === 'file' && isNormalRepoName(data.repo)) { // record recent open time, except for repo starts with '__'
|
||||
const record: Record<string, number> = {
|
||||
...(state.recentOpenTime || {}),
|
||||
[`${data.repo}|${data.path}`]: Date.now()
|
||||
|
||||
Reference in New Issue
Block a user