[优化] 同步上游更新 (@821938089)
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
import API from '@api'
|
||||
import { CircleCheckFilled, Edit } from '@element-plus/icons-vue'
|
||||
import hotkeys from 'hotkeys-js'
|
||||
import { getSourceName, isInvaildSource, normalizeSource } from '../utils/souce'
|
||||
import { getSourceName, isInvaildSource } from '../utils/souce'
|
||||
|
||||
const store = useSourceStore()
|
||||
@@ -168,6 +169,7 @@ const redo = () => {
|
||||
const saveSource = () => {
|
||||
const source = store.currentSource
|
||||
if (isInvaildSource(source)) {
|
||||
normalizeSource(source)
|
||||
API.saveSource(source).then(({ data }) => {
|
||||
const sourceName = getSourceName(source)
|
||||
if (data.isSuccess) {
|
||||
|
||||
Reference in New Issue
Block a user