Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ad6fcee

Browse filesBrowse files
committed
fix: store
1 parent 0b5d15f commit ad6fcee
Copy full SHA for ad6fcee

File tree

Expand file treeCollapse file tree

4 files changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+4
-5
lines changed

‎src/components/Dropzone/index.vue

Copy file name to clipboardExpand all lines: src/components/Dropzone/index.vue
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default defineComponent({
130130
},
131131
accept: (file, done) => {
132132
/* 七牛*/
133-
// const token = this.$store.getters.token;
133+
// const token = store.user().token;
134134
// getToken(token).then(response => {
135135
// file.token = response.data.qiniu_token;
136136
// file.key = response.data.qiniu_key;

‎src/components/Tinymce/index.vue

Copy file name to clipboardExpand all lines: src/components/Tinymce/index.vue
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default defineComponent({
174174
// },
175175
// images_upload_handler(blobInfo, success, failure, progress) {
176176
// progress(0);
177-
// const token = that.$store.getters.token;
177+
// const token = store.user().token;
178178
// getToken(token).then(response => {
179179
// const url = response.data.qiniu_url;
180180
// const formData = new FormData();

‎src/views/example/components/ArticleDetail.vue

Copy file name to clipboardExpand all lines: src/views/example/components/ArticleDetail.vue
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import Tinymce from '@/components/Tinymce';
8181
import Upload from '@/components/Upload/SingleImage3';
8282
import MDinput from '@/components/MDinput';
8383
import Sticky from '@/components/Sticky'; // 粘性header组件
84+
import store from '@/store';
8485
import { validURL } from '@/utils/validate';
8586
import { fetchArticle } from '@/api/article';
8687
import { searchUser } from '@/api/remote-search';
@@ -206,7 +207,7 @@ export default defineComponent({
206207
setTagsViewTitle() {
207208
const title = 'Edit Article';
208209
const route = Object.assign({}, this.tempRoute, { title: `${title}-${this.postForm.id}` });
209-
this.$store.dispatch('tagsView/updateVisitedView', route);
210+
store.tagsView().updateVisitedView(route);
210211
},
211212
setPageTitle() {
212213
const title = 'Edit Article';

‎src/views/login/components/SocialSignin.vue

Copy file name to clipboardExpand all lines: src/views/login/components/SocialSignin.vue
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ export default defineComponent({
2424
methods: {
2525
wechatHandleClick(type: string) { // thirdpart
2626
alert(type + 'ok ');
27-
// this.$store.commit('SET_AUTH_TYPE', thirdpart)
2827
// const appid = 'xxxxx'
2928
// const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect')
3029
// const url = 'https://open.weixin.qq.com/connect/qrconnect?appid=' + appid + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_login#wechat_redirect'
3130
// openWindow(url, thirdpart, 540, 540)
3231
},
3332
tencentHandleClick(type: string) { // thirdpart
3433
alert(type + 'ok');
35-
// this.$store.commit('SET_AUTH_TYPE', thirdpart)
3634
// const client_id = 'xxxxx'
3735
// const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect')
3836
// const url = 'https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirect_uri

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.