fix the import path in utils

This commit is contained in:
Zhigang Wang 2024-06-20 20:58:03 -07:00
parent a21f824f7b
commit ada2f06bae
9 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router'
import { store, userRoleEnum } from '@/store/index'
import { store, userRoleEnum } from '../store/index'
//public
import About from '@/pages/public/About.vue'

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class HistoryApi {
static fetchClosedWorkspackeProjects() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class LabApi {
static translate_text(input_text) {
let jwt = userUtils.getJwtToken()

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class MessageHubApi {
static fetchMessageThreads() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class ProviderHubApi {
static fetchProvidersForHub() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class RequestHubApi {
static fetchRequestForHub() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class UserProfileApi {
static fetchUserProfile() {

View File

@ -1,9 +1,9 @@
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class WsConnectionFactory {
static CreateWebSocket(onOpen, onMessage, onError, onClose) {
let jwt = userUtils.getJwtToken()
this.socket = new WebSocket(`/ws/downstream/downstream_notification?token=${jwt}`)
this.socket = new WebSocket(`/ws/downstream/online_platform_notification?token=${jwt}`)
this.socket.onopen = onOpen
this.socket.onmessage = onMessage
this.socket.onerror = onError

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios'
import { userUtils } from '@/store/index'
import { userUtils } from '../store/index'
class WorksapceApi {
static createMilestoneCheckoutSession(project_id, milestone_index) {