mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 15:16:01 +00:00
solved configStore problem
This commit is contained in:
@@ -21,8 +21,7 @@
|
||||
import _ from 'lodash';
|
||||
|
||||
export let data;
|
||||
export let config;
|
||||
export let setConfig;
|
||||
export let configStore;
|
||||
export let conid;
|
||||
export let database;
|
||||
export let sql;
|
||||
@@ -31,6 +30,8 @@
|
||||
let error = null;
|
||||
let loadedData = null;
|
||||
|
||||
$: config = $configStore;
|
||||
|
||||
const getDriver = async () => {
|
||||
const conn = await getConnectionInfo({ conid });
|
||||
if (!conn) return;
|
||||
@@ -61,18 +62,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
const configStore = writable(config);
|
||||
const changingRef = createRef(false);
|
||||
$: {
|
||||
if (!changingRef.get()) {
|
||||
$configStore = config;
|
||||
}
|
||||
}
|
||||
// $: {
|
||||
// changingRef.set(true);
|
||||
// setConfig($configStore);
|
||||
// changingRef.set(false);
|
||||
// }
|
||||
$: {
|
||||
$extensions;
|
||||
if (sql && conid && database) {
|
||||
|
||||
Reference in New Issue
Block a user