-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { boot } from 'quasar/wrappers' | ||
import axios from 'axios' | ||
|
||
const api = axios.create({ baseURL: 'https://api.example.com' }) | ||
|
||
export default boot(({ app }) => { | ||
// for use inside Vue files (Options API) through this.$axios and this.$api | ||
|
||
app.config.globalProperties.$axios = axios | ||
// ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form) | ||
// so you won't necessarily have to import axios in each vue file | ||
|
||
app.config.globalProperties.$api = api | ||
// ^ ^ ^ this will allow you to use this.$api (for Vue Options API form) | ||
// so you can easily perform requests against your app's API | ||
|
||
|
||
}) | ||
|
||
export { axios, api } |
Submodule core
updated
from cfc9b9 to b82bc1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tabsets
updated
2 files
+3 −0 | commands/AddTabToTabsetCommand.ts | |
+3 −0 | commands/CreateTabset.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters