prepare for sharing functionality
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
@@ -15,6 +15,7 @@ import user from "./modules/user"
|
||||
import videos from "./modules/videos"
|
||||
import system from "./modules/system"
|
||||
import search from "./modules/search"
|
||||
import share from "./modules/share"
|
||||
|
||||
export default createStore({
|
||||
state,
|
||||
@@ -31,6 +32,7 @@ export default createStore({
|
||||
user,
|
||||
videos,
|
||||
system,
|
||||
search
|
||||
search,
|
||||
share
|
||||
}
|
||||
})
|
||||
9
src/store/modules/share/actions.js
Normal file
9
src/store/modules/share/actions.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
get(context, id) {
|
||||
axios.get(context.rootGetters.server + "/api/shares/" + id, context.rootGetters.headers).then((res) => {
|
||||
console.log(res);
|
||||
});
|
||||
},
|
||||
}
|
||||
9
src/store/modules/share/index.js
Normal file
9
src/store/modules/share/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
//import state from './state.js';
|
||||
//import getters from './getters.js';
|
||||
//import mutations from './mutations.js';
|
||||
import actions from './actions.js';
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
actions
|
||||
}
|
||||
Reference in New Issue
Block a user