remove code
This commit is contained in:
parent
ff3fb68219
commit
87f9c6c068
2 changed files with 0 additions and 38 deletions
36
src/main.ts
36
src/main.ts
|
|
@ -3,8 +3,6 @@ import App from '@/App.vue'
|
|||
import '@/registerServiceWorker'
|
||||
import router from '@/router'
|
||||
import { createPinia } from 'pinia'
|
||||
// import keycloak, { getToken } from '@/plugins/keycloak'
|
||||
|
||||
import { Quasar, Dialog, Notify, Loading } from 'quasar'
|
||||
import '@vuepic/vue-datepicker/dist/main.css'
|
||||
import quasarUserOptions from '@/quasar-user-options'
|
||||
|
|
@ -37,38 +35,4 @@ app.component(
|
|||
|
||||
app.config.globalProperties.$http = http
|
||||
|
||||
// // authen with keycloak client
|
||||
// function getCookie(name: string) {
|
||||
// const nameEQ = name + '='
|
||||
// const ca = document.cookie.split(';')
|
||||
// for (let i = 0; i < ca.length; i++) {
|
||||
// let c = ca[i]
|
||||
// while (c.charAt(0) == ' ') c = c.substring(1, c.length)
|
||||
// if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length)
|
||||
// }
|
||||
// return null
|
||||
// }
|
||||
|
||||
// const auth = await getToken()
|
||||
|
||||
// if (auth.token && auth.refresh_token) {
|
||||
// keycloak.init({
|
||||
// checkLoginIframe: false,
|
||||
// token: auth.token,
|
||||
// refreshToken: auth.refresh_token,
|
||||
// })
|
||||
|
||||
// // .then((authenticated) => {
|
||||
// // console.log('authenticated', authenticated)
|
||||
// // if (!authenticated) {
|
||||
// // window.location.reload()
|
||||
// // } else {
|
||||
// // console.log('Authenticated')
|
||||
// // }
|
||||
// // })
|
||||
// // .catch((err) => {
|
||||
// // console.error('Keycloak initialization failed:', err)
|
||||
// // })
|
||||
// }
|
||||
|
||||
app.mount('#app')
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import axios from 'axios'
|
||||
import config from 'process'
|
||||
// import { dotnetPath } from "../path/axiosPath";
|
||||
// import { getToken } from "@baloise/vue-keycloak";
|
||||
// import keycloak from '@/plugins/keycloak'
|
||||
import { getToken } from './auth'
|
||||
|
||||
const axiosInstance = axios.create({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue