增加开发环境 mock

This commit is contained in:
simple321vip
2022-10-26 21:56:32 +08:00
parent bf00737dd9
commit 7ffde47b21
11 changed files with 541 additions and 17 deletions
+2 -2
View File
@@ -43,10 +43,10 @@
import $moment from "moment";
import { reactive, ref } from "vue";
import router from '../../router'
import { useTenantStore } from '../../store/tenant'
import { tenantStore } from '../../store/tenant'
import { logout } from '../../api/user'
// obtain user infomation
const tenant = useTenantStore()
const tenant = tenantStore()
tenant.reflush()
const dialogVisible = ref(false)
+2 -2
View File
@@ -34,7 +34,7 @@
<script lang="ts" setup>
import { reactive, ref } from 'vue'
import type { FormInstance } from 'element-plus'
import { useTenantStore } from '../../store/tenant'
import { tenantStore } from '../../store/tenant'
import router from '../../router'
import baiduCloudImage from "../../assets/baiducloud.png"
import config from '../../const/config'
@@ -42,7 +42,7 @@ import config from '../../const/config'
let qrcode = config.BAIDU_CLOUD_URL + config.RESPONSE_TYPE + config.CLIENT_ID + config.REDIRECT_URI + config.SCOPE + config.DEVICE_ID + config.QR_CODE + config.DISPLAY
const tenant = useTenantStore()
const tenant = tenantStore()
const ruleFormRef = ref<FormInstance>()
const loginForm = reactive({