changed all urls
This commit is contained in:
@ -76,7 +76,7 @@
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import Axios from '../axios.config.js';
|
||||
import serversideConfig from '../serversideConfig.js';
|
||||
import clientsideConfig from '../../clientsideConfig.js';
|
||||
|
||||
const darkMode = ref(true)
|
||||
// const editable = ref(false)
|
||||
@ -87,7 +87,7 @@ const getItemById = async () => {
|
||||
console.log(this.chosenAssetId)
|
||||
try {
|
||||
const response = await Axios.get(
|
||||
`https://${serversideConfig.url}:3000/api/getConfigItem/${chosenAssetId}`
|
||||
`https://${clientsideConfig.url}:${clientsideConfig.port}/api/getConfigItem/${chosenAssetId}`
|
||||
);
|
||||
item.value = response.data;
|
||||
} catch (err) {
|
||||
@ -114,7 +114,7 @@ const updateConfigItem = async () => {
|
||||
}
|
||||
try {
|
||||
await Axios.put(
|
||||
`https://${serversideConfig.url}:3000/api/updateConfigItem/${itemIndex}`,
|
||||
`https://${clientsideConfig.url}:${clientsideConfig.port}/api/updateConfigItem/${itemIndex}`,
|
||||
{
|
||||
primaryID: item.primaryID,
|
||||
assetName: item.assetName,
|
||||
|
||||
Reference in New Issue
Block a user