改进
This commit is contained in:
parent
d6fcf82973
commit
6e99fb5413
@ -1,32 +1,27 @@
|
||||
<template>
|
||||
<v-container class="fill-height">
|
||||
<v-responsive class="align-center text-center fill-height">
|
||||
<v-btn @click="testrequest">Hi</v-btn>
|
||||
<v-btn @click="testrequest">Hi</v-btn>
|
||||
|
||||
<v-text-field label="Label" v-model="token"></v-text-field>
|
||||
<v-text-field label="Label" v-model="token"></v-text-field>
|
||||
|
||||
<v-btn @click="settoken">设置</v-btn>
|
||||
|
||||
</v-responsive>
|
||||
</v-container>
|
||||
<v-btn @click="settoken">设置</v-btn>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {library} from '@/plugins/api'
|
||||
import { ref } from 'vue';
|
||||
import { useUserStore } from '@/store/user';
|
||||
const userStore = useUserStore()
|
||||
const token = ref("")
|
||||
import { library } from "@/plugins/api";
|
||||
import { ref } from "vue";
|
||||
import { useUserStore } from "@/store/user";
|
||||
const userStore = useUserStore();
|
||||
const token = ref("");
|
||||
|
||||
const settoken = () => {
|
||||
userStore.login("0", token.value)
|
||||
userStore.login("0", token.value);
|
||||
|
||||
console.log(userStore.jwt_token)
|
||||
}
|
||||
console.log(userStore.jwt_token);
|
||||
};
|
||||
|
||||
const testrequest = () => {
|
||||
library.librariesGet(1).then(r => console.log(r))
|
||||
}
|
||||
library.librariesGet(1).then((r) => console.log(r));
|
||||
};
|
||||
|
||||
// library.libraryLibraryIdDocumentsGet(1,2)
|
||||
</script>
|
||||
</script>
|
||||
|
@ -1,9 +1,13 @@
|
||||
<template>
|
||||
<v-main>
|
||||
<router-view />
|
||||
<v-container>
|
||||
<v-responsive class="pa-2">
|
||||
<router-view />
|
||||
</v-responsive>
|
||||
</v-container>
|
||||
</v-main>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
//
|
||||
//
|
||||
</script>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<LoadingComponent v-if="loading"> </LoadingComponent>
|
||||
<v-container v-else>
|
||||
<div v-else>
|
||||
<h1>资料库</h1>
|
||||
|
||||
<!-- <div>
|
||||
@ -60,7 +60,7 @@
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-container>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<v-container>
|
||||
|
Loading…
Reference in New Issue
Block a user