修复store冲突
This commit is contained in:
		
							parent
							
								
									908bcfc5b1
								
							
						
					
					
						commit
						55f29dc619
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
import { defineStore } from 'pinia'
 | 
			
		||||
import { ref, computed } from 'vue'
 | 
			
		||||
 | 
			
		||||
export const useKeyNodeStore = defineStore('keyNode', () => {
 | 
			
		||||
export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		||||
  const allLeaderData = ref([
 | 
			
		||||
    {
 | 
			
		||||
      userid: "huxijin",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
import { defineStore } from 'pinia'
 | 
			
		||||
import { ref, computed } from 'vue'
 | 
			
		||||
 | 
			
		||||
export const useKeyNodeStore = defineStore('keyNode', () => {
 | 
			
		||||
export const useKeyNodeStore2 = defineStore('keyNode2', () => {
 | 
			
		||||
  const allLeaderData = ref([
 | 
			
		||||
    {
 | 
			
		||||
      id: "Israel Defense Forces",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -48,7 +48,7 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, onMounted, onUnmounted } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore1';
 | 
			
		||||
import { useKeyNodeStore1 } from '@/store/keyNodeStore1';
 | 
			
		||||
 | 
			
		||||
import LeaderList from './KeyNodeRecognition1/components/LeaderList.vue';
 | 
			
		||||
import GraphPanel from './KeyNodeRecognition1/components/GraphPanel.vue';
 | 
			
		||||
| 
						 | 
				
			
			@ -61,7 +61,7 @@ import EventHeatmap from "../components/weight/EventHeatmap.vue";
 | 
			
		|||
import PostDynamics from "../components/weight/PostDynamics.vue";
 | 
			
		||||
import WordCloud from "../components/weight/WordCloud.vue";
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
const graphPanelRef = ref(null);
 | 
			
		||||
 | 
			
		||||
const handleLeaderSelect = (leader) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, watch, onUnmounted, nextTick } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore1';
 | 
			
		||||
import { useKeyNodeStore1 } from '@/store/keyNodeStore1';
 | 
			
		||||
import * as echarts from 'echarts/core';
 | 
			
		||||
import { SVGRenderer } from 'echarts/renderers';
 | 
			
		||||
import { LineChart } from 'echarts/charts';
 | 
			
		||||
| 
						 | 
				
			
			@ -17,7 +17,7 @@ import { GridComponent, TooltipComponent } from 'echarts/components';
 | 
			
		|||
 | 
			
		||||
echarts.use([SVGRenderer, LineChart, GridComponent, TooltipComponent]);
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
const detailsChartRef = ref(null);
 | 
			
		||||
let myChart = null;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,10 +93,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, defineExpose } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore1';
 | 
			
		||||
import { useKeyNodeStore1 } from '@/store/keyNodeStore1';
 | 
			
		||||
import DynamicGraph from "./graph/dynamicGraph.vue";
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
const leaderGraphRef = ref(null);
 | 
			
		||||
 | 
			
		||||
const handleGraphNodeClick = (leaderData) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,10 +76,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { computed } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore1';
 | 
			
		||||
import { useKeyNodeStore1 } from '@/store/keyNodeStore1';
 | 
			
		||||
import { Icon } from '@iconify/vue';
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
 | 
			
		||||
const isVisible = computed({
 | 
			
		||||
  get: () => store.isLeaderDetailDialogVisible,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,10 +40,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, computed, watch, nextTick, defineEmits } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore1';
 | 
			
		||||
import { useKeyNodeStore1 } from '@/store/keyNodeStore1';
 | 
			
		||||
 | 
			
		||||
const emit = defineEmits(['selectLeader']);
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
 | 
			
		||||
const leaderListRef = ref(null);
 | 
			
		||||
const tabs = ref(["全部", "新闻媒体", "自媒体", "政府官号"]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,10 +24,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { computed } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore1';
 | 
			
		||||
import { useKeyNodeStore1 } from '@/store/keyNodeStore1';
 | 
			
		||||
import { Icon } from '@iconify/vue';
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
 | 
			
		||||
const isVisible = computed({
 | 
			
		||||
  get: () => store.isPostDetailDialogVisible,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,7 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, onMounted, onUnmounted } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore2';
 | 
			
		||||
import { useKeyNodeStore2 } from '@/store/keyNodeStore2';
 | 
			
		||||
 | 
			
		||||
import LeaderList from './KeyNodeRecognition2/components/LeaderList.vue';
 | 
			
		||||
import GraphPanel from './KeyNodeRecognition2/components/GraphPanel.vue';
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@ import EventHeatmap from "../components/weight/EventHeatmap.vue";
 | 
			
		|||
import PostDynamics from "../components/weight/PostDynamics.vue";
 | 
			
		||||
import WordCloud from "../components/weight/WordCloud.vue";
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
const graphPanelRef = ref(null);
 | 
			
		||||
 | 
			
		||||
const handleLeaderSelect = (leader) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, watch, onUnmounted, nextTick } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore2';
 | 
			
		||||
import { useKeyNodeStore2 } from '@/store/keyNodeStore2';
 | 
			
		||||
import * as echarts from 'echarts/core';
 | 
			
		||||
import { SVGRenderer } from 'echarts/renderers';
 | 
			
		||||
import { LineChart } from 'echarts/charts';
 | 
			
		||||
| 
						 | 
				
			
			@ -17,7 +17,7 @@ import { GridComponent, TooltipComponent } from 'echarts/components';
 | 
			
		|||
 | 
			
		||||
echarts.use([SVGRenderer, LineChart, GridComponent, TooltipComponent]);
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
const detailsChartRef = ref(null);
 | 
			
		||||
let myChart = null;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,10 +93,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, defineExpose } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore2';
 | 
			
		||||
import { useKeyNodeStore2 } from '@/store/keyNodeStore2';
 | 
			
		||||
import DynamicGraph from "./graph/dynamicGraph.vue";
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
const leaderGraphRef = ref(null);
 | 
			
		||||
 | 
			
		||||
const handleGraphNodeClick = (leaderData) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,10 +76,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { computed } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore2';
 | 
			
		||||
import { useKeyNodeStore2 } from '@/store/keyNodeStore2';
 | 
			
		||||
import { Icon } from '@iconify/vue';
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
 | 
			
		||||
const isVisible = computed({
 | 
			
		||||
  get: () => store.isLeaderDetailDialogVisible,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,10 +40,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { ref, computed, watch, nextTick, defineEmits } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore2';
 | 
			
		||||
import { useKeyNodeStore2 } from '@/store/keyNodeStore2';
 | 
			
		||||
 | 
			
		||||
const emit = defineEmits(['selectLeader']);
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
 | 
			
		||||
const leaderListRef = ref(null);
 | 
			
		||||
const tabs = ref(["全部", "新闻媒体", "自媒体", "政府官号"]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,10 +24,10 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { computed } from 'vue';
 | 
			
		||||
import { useKeyNodeStore } from '@/store/keyNodeStore2';
 | 
			
		||||
import { useKeyNodeStore2 } from '@/store/keyNodeStore2';
 | 
			
		||||
import { Icon } from '@iconify/vue';
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore();
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
 | 
			
		||||
const isVisible = computed({
 | 
			
		||||
  get: () => store.isPostDetailDialogVisible,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user