-
+
-
+
-
+
-
+
- {
- data.periode = value
- }
- " />
+ {
+ data.periode = value
+ }
+ "
+ />
-
+
- {
- data.group = value
- console.log('data.group', value)
- }" :radio-items="[{ id: 1, title: 'Tidak' }, { id: 2, title: 'Ya, Grupkan' }]" />
+ {
+ data.group = value
+ console.log('data.group', value)
+ }
+ "
+ :radio-items="[
+ { id: 1, title: 'Tidak' },
+ { id: 2, title: 'Ya, Grupkan' }
+ ]"
+ />
diff --git a/src/components/Form/FiltersType/Type2.vue b/src/components/Form/FiltersType/Type2.vue
index 998eadc..71ff2ac 100755
--- a/src/components/Form/FiltersType/Type2.vue
+++ b/src/components/Form/FiltersType/Type2.vue
@@ -1,34 +1,46 @@
\ No newline at end of file
+
diff --git a/src/stores/queries.ts b/src/stores/queries.ts
index 62a8c19..e287beb 100755
--- a/src/stores/queries.ts
+++ b/src/stores/queries.ts
@@ -4,7 +4,7 @@ import gql from 'graphql-tag'
import { useQuery } from '@vue/apollo-composable'
export const useQueryStore = defineStore('query', () => {
- const getUser = useQuery(gql`
+ const getUser = useQuery(gql`
query getUsers {
users {
id
@@ -15,7 +15,20 @@ export const useQueryStore = defineStore('query', () => {
}
`)
- return {
- getUser,
+ const { variables } = useQuery(gql`
+ query getUserById ($id: ID!) {
+ user (id: $id) {
+ id
+ email
+ }
}
+ `, {
+ variables: {
+ id: 'abc-abc-abc',
+ }
+ })
+
+ return {
+ getUser,
+ }
})
\ No newline at end of file
diff --git a/src/utils/graphql.ts b/src/utils/graphql.ts
index 1ce6ff5..42650f3 100755
--- a/src/utils/graphql.ts
+++ b/src/utils/graphql.ts
@@ -3,7 +3,7 @@ import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core
export const apolloClient = () => {
const httpLink = createHttpLink({
- uri: 'http://10.8.0.31:32169/graphql',
+ uri: 'http://10.1.50.173:32180/graphql',
credentials: 'include', // Include credentials for cross-origin requests
});
diff --git a/src/utils/network.ts b/src/utils/network.ts
index 8ef57fa..18e1822 100755
--- a/src/utils/network.ts
+++ b/src/utils/network.ts
@@ -1,5 +1,5 @@
import axios from 'axios'
-const url = 'http://10.8.0.13:32180'
+const url = 'http://10.1.50.173:32181'
const instance = axios.create({
// baseURL: 'http://192.168.1.84:32180'
baseURL: url