If you have an Artifact with increased Vault Capacity, you will gain increased resource capacity if you have that Artifact on display in your Museum. However, removing the Artifact that increases the capacity after putting in resources will remove the buff and will decrease the resources placed in the Vault.