File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< title >
5
- 编程汇
5
+ 小灰飞~ 编程汇
6
6
</ title >
7
7
< meta name ="baidu-site-verification " content ="codeva-mbGuu7l4Q1 " />
8
8
< meta
Original file line number Diff line number Diff line change @@ -149,9 +149,7 @@ import {doGet} from "@/http/BackendRequests";
149
149
import type {CommonResponse } from " @/http/ResponseTypes/CommonResponseType" ;
150
150
import {ARTICLE_COLUMN_RELATION_URL } from " @/http/URL" ;
151
151
import {messageTip } from " @/util/utils" ;
152
- import {useArticleInfoStore } from " @/stores/articleInfo" ;
153
152
154
- const articleInfoStore = useArticleInfoStore ()
155
153
const router = useRouter ()
156
154
157
155
const props = defineProps <{
@@ -163,7 +161,6 @@ const clickArticle = () =>{
163
161
if (props .article .articleType === ArticleTypeNumberEnum .COLUMN ){
164
162
doGet <CommonResponse >(` ${ARTICLE_COLUMN_RELATION_URL }/${props .article .articleId } ` ).then (res => {
165
163
router .push (` /column/${res .data .result .columnId }/${res .data .result .section } ` )
166
- articleInfoStore .setArticleId (res .data .result .articleId )
167
164
}).catch (err => {
168
165
messageTip (" 获取专栏信息失败" , " error" )
169
166
console .log (err )
Original file line number Diff line number Diff line change @@ -15,3 +15,14 @@ export enum ArticleTypeEnum{
15
15
// 专栏文章
16
16
COLUMN = 'COLUMN' ,
17
17
}
18
+
19
+ export enum ArticleTypeNumberEnum {
20
+ // 空文章
21
+ EMPTY = 0 ,
22
+ // 博文
23
+ BLOG = 1 ,
24
+ // 问答
25
+ ANSWER = 2 ,
26
+ // 专栏文章
27
+ COLUMN = 3 ,
28
+ }
Original file line number Diff line number Diff line change 1
1
// src/stores/global.ts
2
2
import { defineStore } from 'pinia' ;
3
- import axios from 'axios' ;
4
- import { doGet } from '@/http/BackendRequests' ;
5
3
import { GLOBAL_STORE } from '@/constants/StoreConstants'
6
4
import { defaultGlobalResponse , type GlobalResponse } from '@/http/ResponseTypes/CommonResponseType'
7
5
You can’t perform that action at this time.
0 commit comments