1. npm install --save-dev @types/axios @types/vue @types/vue-router
2. create file vue-router.d.ts 2. pinia use my plugin 3. npm i --save-dev @types/cytoscape. npm i --save-dev @types/cytoscape-dagre. npm i --save-dev @types/cytoscape-popper. 4. add apiError.d.ts npm install --save-dev @types/vue-router. 5. add vue-axios.d.ts
This commit is contained in:
@@ -110,7 +110,7 @@ import { ref, computed, onMounted, watch, } from 'vue';
|
||||
import { storeToRefs, mapState, mapActions, } from 'pinia';
|
||||
import LoadingStore from '@/stores/loading.js';
|
||||
import { useModalStore } from '@/stores/modal.js';
|
||||
import useAcctMgmtStore from '@/stores/acctMgmt.js';
|
||||
import useAcctMgmtStore from '@/stores/acctMgmt.ts';
|
||||
import piniaLoginStore from '@/stores/login.js';
|
||||
import SearchBar from '../../../components/AccountMenu/SearchBar.vue';
|
||||
import i18next from '@/i18n/i18n.js';
|
||||
@@ -145,10 +145,10 @@ function repeatAccountList(accountList, N) {
|
||||
}
|
||||
|
||||
// 這是製作假資料,在正式環境不會用到
|
||||
const repeatedAccountList = repeatAccountList(accountList, 20);
|
||||
// const repeatedAccountList = repeatAccountList(accountList, 20);
|
||||
|
||||
export default {
|
||||
setup(props, { emit, }) {
|
||||
setup() {
|
||||
const toast = useToast();
|
||||
const acctMgmtStore = useAcctMgmtStore();
|
||||
const loadingStore = LoadingStore();
|
||||
@@ -382,7 +382,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
i18next: i18next,
|
||||
repeatedAccountList: repeatedAccountList,
|
||||
infiniteAcctDataVue2: [],
|
||||
infiniteStart: 0,
|
||||
isInfiniteFinish: true,
|
||||
@@ -432,9 +431,10 @@ export default {
|
||||
this.openModal(MODAL_ACCT_INFO);
|
||||
this.setCurrentViewingUser(dataKey);
|
||||
},
|
||||
onEditBtnClick(dataKey){
|
||||
onEditBtnClick(clickedUserName){
|
||||
this.openModal(MODAL_ACCT_EDIT);
|
||||
this.setCurrentViewingUser(dataKey);
|
||||
console.log('TODO:', clickedUserName);
|
||||
this.setCurrentViewingUser(clickedUserName);
|
||||
},
|
||||
moveCurrentLoginUserToFirstRow(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user