diff --git a/src/App.vue b/src/App.vue index ceb45d786cafe8d5a58ca0a42f025cecb82a690a..7c66782d8de5c3787ebebebe68519ba7509db329 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,21 +7,7 @@ import departments from './component/humanResources/department.vue' import jobTitle from './component/humanResources/jobTitle.vue'; import empss from './component/humanResources/emp.vue'; import verticalTable from './component/main/verticalTable/verticalTable.vue'; -import loadingComponents from './component/loadingComponents/loadingComponents.vue'; -import { provide, ref, watch } from 'vue'; -const size = ref({ - offsetWidth: 1, - offsetHeight: 1, - offsetLeft: 1, - offsetTop: 1 -}); -watch(() => size.value.offsetHeight, (res) => { - console.log(size.value.offsetWidth); - console.log(size.value.offsetHeight); - console.log(size.value.offsetLeft); - console.log(size.value.offsetTop); -}) -provide('size', size); + \ No newline at end of file diff --git a/src/component/loadingComponents/animation/animation1.vue b/src/component/loadingComponents/animation/animation1.vue new file mode 100644 index 0000000000000000000000000000000000000000..39de2199bb6fe7da52c837bef645a71f6d2de652 --- /dev/null +++ b/src/component/loadingComponents/animation/animation1.vue @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/src/component/loadingComponents/loadingComponents.vue b/src/component/loadingComponents/loadingComponents.vue index 0f224dd090c6a74d137133b2b214eaca5704c368..90d8c5d310527e16553016a26d9f48d135990de5 100644 --- a/src/component/loadingComponents/loadingComponents.vue +++ b/src/component/loadingComponents/loadingComponents.vue @@ -1,37 +1,64 @@ \ No newline at end of file diff --git a/src/main.js b/src/main.js index 6a10b59fa8d93ae00436909f07690f71a243e09a..7bcae08f5b63065e482186d3ff0dade66942f646 100644 --- a/src/main.js +++ b/src/main.js @@ -7,10 +7,9 @@ import zhCn from 'element-plus/dist/locale/zh-cn.mjs' import { createPinia } from 'pinia' -const pinia = createPinia() const app = createApp(App); app.use(router); -app.use(pinia); +app.use(createPinia()); app.use(ElementPlus, { locale: zhCn, }); diff --git a/src/storage/promiseStorage.js b/src/storage/promiseStorage.js new file mode 100644 index 0000000000000000000000000000000000000000..31c9b0464261ce15d072309a37f46dde1f02c106 --- /dev/null +++ b/src/storage/promiseStorage.js @@ -0,0 +1,17 @@ +import { defineStore } from "pinia"; + +export const usePromiseStore = defineStore('promise', { + state() { + return { + sendRequestFirst:'' + }; + }, + actions: { + setSendRequestFirst(sendRequestFirst){ + this.sendRequestFirst = sendRequestFirst; + }, + getSendRequestFirst(){ + return this.sendRequestFirst; + } + } +}); \ No newline at end of file