Feat: Remove async in load actions
This commit is contained in:
@@ -30,7 +30,7 @@ export default {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async load_postes (context) {
|
||||
load_postes (context) {
|
||||
readFile(path.join(context.getters.config_dir, context.getters.postes_filename), 'utf8', (err, content) => {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
|
@@ -80,7 +80,7 @@ export default {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async find_csv (context) {
|
||||
find_csv (context) {
|
||||
try {
|
||||
readdir(context.rootGetters['config/data_dir'], (err, list) => {
|
||||
if (err) {
|
||||
@@ -99,7 +99,7 @@ export default {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
async load_csv (context, csv) {
|
||||
load_csv (context, csv) {
|
||||
readFile(path.join(context.rootGetters['config/data_dir'], csv), 'utf8', (err, content) => {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
|
Reference in New Issue
Block a user