博客 window.open() gongasd

This commit is contained in:
simple321vip
2022-04-11 01:01:11 +08:00
parent eb9ffdf27b
commit fc2aa9d22b
8 changed files with 67 additions and 3 deletions
+6 -1
View File
@@ -11,6 +11,8 @@ import MdEditor from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import { reactive, ref } from 'vue';
import { get_blogs } from '../../api/blog'
import router from '../../router/index'
type Blog = {
blog_id: number,
@@ -36,7 +38,10 @@ text.value = "开始吧肿瘤"
const openBlog = () => {
window.open("11111")
const { href } = router.resolve({
path: '/blog=1'
});
window.open(href, '_blank');
}
</script>