Compare commits
2 Commits
35ab6ec79f
...
f2fa1992e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2fa1992e6 | ||
|
|
94ebd22875 |
@ -81,7 +81,7 @@ watch(currentFilePath, async (newFilePath) => {
|
||||
await readFileContent(newFilePath);
|
||||
})
|
||||
const getFileNameFromFilePath = (filePath) => {
|
||||
const fullFileName = currentFilePath.value.split('/').pop();
|
||||
const fullFileName = filePath.split('/').pop();
|
||||
const splitResult = fullFileName.split(".");
|
||||
splitResult.pop(); // 丢掉后缀
|
||||
return splitResult.join('.');
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
import 'md-editor-v3/lib/style.css';
|
||||
import '@vavt/v3-extension/lib/asset/PreviewThemeSwitch.css';
|
||||
import '@vavt/v3-extension/lib/asset/ExportPDF.css';
|
||||
import { MdEditor, MdCatalog, NormalToolbar, DropdownToolbar } from 'md-editor-v3';
|
||||
import { MdEditor, MdCatalog, NormalToolbar } from 'md-editor-v3';
|
||||
import { ThemeSwitch, PreviewThemeSwitch, ExportPDF } from '@vavt/v3-extension';
|
||||
import { ref, reactive, watch } from "vue";
|
||||
import { Message } from 'view-ui-plus'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user