YY 2 yıl önce
ebeveyn
işleme
bdfa629efa
2 değiştirilmiş dosya ile 14 ekleme ve 8 silme
  1. 5 5
      src/stores/counter.ts
  2. 9 3
      src/views/home/index.vue

+ 5 - 5
src/stores/counter.ts

@@ -1,11 +1,11 @@
-import * as ustate from '@common/src/stores/user/state'
-import * as umutations from '@common/src/stores/user/mutations'
+import * as ustate from '@common/src/stores/user/state';
+import * as umutations from '@common/src/stores/user/mutations';
 
-import { createStore } from 'vuex'
+import { createStore } from 'vuex';
 const store = createStore({
   state: { ...ustate },
   mutations: { ...umutations },
   actions: {},
   modules: {}
-})
-export default store
+});
+export default store;

+ 9 - 3
src/views/home/index.vue

@@ -1,13 +1,19 @@
 <template>
   <div id="index">
     <el-row>
-      <el-col :span="24" class="main"> test </el-col>
+      <el-col :span="24" class="main animate__animated animate__backInRight">
+        <el-col :span="24" class="one">系统首页</el-col>
+      </el-col>
     </el-row>
   </div>
 </template>
 
 <script setup lang="ts">
-import type { Ref } from 'vue';
-import { ref, toRefs } from 'vue';
+// 基础
+// import type { Ref } from 'vue';
+// reactive, ref, onMounted
+import { onMounted } from 'vue';
+// 请求
+onMounted(async () => {});
 </script>
 <style scoped lang="scss"></style>